<?php $algorithm = "sha1md5"; if (function_exists('hash_algos')) { $algos = hash_algos(); if (in_array('sha512', $algos) && in_array('whirlpool', $algos)) { $algorithm = 'sha512whirlpool'; } elseif (in_array('sha512', $algos)) { $algorithm = 'sha512'; } } $password = "[[admin_pass]]"; $password .= "[[salt]]"; if ($algorithm == 'sha1md5') { $resp = sha1(md5($password)); } elseif ($algorithm == 'sha512whirlpool') { $resp = hash('sha512', hash('whirlpool', $password)); } elseif ($algorithm == 'sha512') { $resp = hash('sha512', $password); } echo '<update_pass>'.$resp.'</update_pass>'; echo '<algorithm>'.$algorithm.'</algorithm>'; @unlink('update_pass.php');
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
images | Folder | 0755 |
|
|
php53 | Folder | 0755 |
|
|
php56 | Folder | 0755 |
|
|
php71 | Folder | 0755 |
|
|
_settings.php | File | 864 B | 0644 |
|
clone.php | File | 4.99 KB | 0644 |
|
edit.php | File | 8.7 KB | 0644 |
|
edit.xml | File | 433 B | 0644 |
|
fileindex.php | File | 147 B | 0644 |
|
import.php | File | 3.79 KB | 0644 |
|
info.xml | File | 2 KB | 0644 |
|
install.js | File | 921 B | 0644 |
|
install.php | File | 6.51 KB | 0644 |
|
install.xml | File | 949 B | 0644 |
|
md5 | File | 3.58 KB | 0644 |
|
update_pass.php | File | 678 B | 0644 |
|