<?php $resp = __getHashedPassword('[[admin_pass]]'); echo '<update_pass>'.$resp.'</update_pass>'; function __getHashedPassword($password, $salt = null){ $saltedPW = null; $salt = random_bytes('16'); $hash = hash_pbkdf2('sha256', $password, $salt, '25000', 0, true); $saltedPW = __applySettingsToSalt($salt) . '$' . __base64Encode($hash, strlen($hash)); return $saltedPW; } function __base64Encode($input, $count){ $input = substr($input, 0, $count); return rtrim(str_replace('+', '.', base64_encode($input)), " =\r\n\t\0\x0B"); } function __applySettingsToSalt($salt){ $saltWithSettings = $salt; $saltWithSettings = '$pbkdf2-sha256$' . sprintf('%02u', '25000') . '$' . __base64Encode($salt, '16'); return $saltWithSettings; } @unlink('Pbkdf2Salt.php'); ?>
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
images | Folder | 0755 |
|
|
php53 | Folder | 0755 |
|
|
php56 | Folder | 0755 |
|
|
php71 | Folder | 0755 |
|
|
php81 | Folder | 0755 |
|
|
php82 | Folder | 0755 |
|
|
.htaccess | File | 312 B | 0644 |
|
Pbkdf2Salt.php | File | 781 B | 0644 |
|
_.htaccess | File | 14.66 KB | 0644 |
|
_upgrade.php | File | 4.08 KB | 0644 |
|
_upgrade.xml | File | 452 B | 0644 |
|
edit.php | File | 6.73 KB | 0644 |
|
edit.xml | File | 433 B | 0644 |
|
file_.htaccess | File | 348 B | 0644 |
|
file_index.html | File | 116 B | 0644 |
|
fileadmin.htaccess | File | 1.88 KB | 0644 |
|
fileindex.php | File | 100 B | 0644 |
|
import.php | File | 5.77 KB | 0644 |
|
info.xml | File | 3.79 KB | 0644 |
|
install.js | File | 924 B | 0644 |
|
install.php | File | 19.04 KB | 0644 |
|
install.xml | File | 733 B | 0644 |
|
md5 | File | 2.32 KB | 0644 |
|
notes.txt | File | 1.39 KB | 0644 |
|
settings.php | File | 3.63 KB | 0644 |
|
update_pass.php | File | 767 B | 0644 |
|