Server IP : 149.255.58.128 / Your IP : 216.73.216.158
System : Linux cloud516.thundercloud.uk 5.14.0-427.26.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 17 15:51:13 EDT 2024 x86_64
PHP Version : 8.2.28
Disable Function : allow_url_include, apache_child_terminate, apache_setenv, exec, passthru, pcntl_exec, posix_kill, posix_mkfifo, posix_getpwuid, posix_setpgid, posix_setsid, posix_setuid, posix_setgid, posix_seteuid, posix_setegid, posix_uname, proc_close, proc_get_status, proc_open, proc_terminate, shell_exec, show_source, system
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Upload Files :
Command :
Current File : /var/softaculous/admidio//update_pass.php
<?php
@unlink('update_pass.php');
$options = array('cost' => 10);
$gPasswordHashAlgorithm = 'DEFAULT';
define('HASH_ALGORITHM_DEFAULT','DEFAULT');
define('HASH_ALGORITHM_ARGON2ID','ARGON2ID');
define('HASH_ALGORITHM_ARGON2I','ARGON2I');
define('HASH_ALGORITHM_BCRYPT','BCRYPT');
define('HASH_ALGORITHM_SHA512','SHA512');
define('HASH_INDICATOR_SHA512','$6$');
define('HASH_COST_SHA512_DEFAULT',100000);
define('HASH_COST_SHA512_MIN',25000);
define('HASH_COST_BCRYPT_DEFAULT',PASSWORD_BCRYPT_DEFAULT_COST);
define('HASH_COST_BCRYPT_MIN',8);
function __hash($password, $algorithm = HASH_ALGORITHM_DEFAULT, array $options = array())
{
$options = __getPreparedOptions($algorithm, $options);
switch ($algorithm) {
case HASH_ALGORITHM_DEFAULT:
$algorithmPhpConstant = PASSWORD_DEFAULT;
break;
case HASH_ALGORITHM_ARGON2ID:
$algorithmPhpConstant = PASSWORD_ARGON2ID;
break;
case HASH_ALGORITHM_ARGON2I:
$algorithmPhpConstant = PASSWORD_ARGON2I;
break;
case HASH_ALGORITHM_BCRYPT:
$algorithmPhpConstant = PASSWORD_BCRYPT;
break;
case HASH_ALGORITHM_DEFAULT:
$algorithmPhpConstant = PASSWORD_DEFAULT;
break;
case HASH_ALGORITHM_SHA512:
$salt = '[[salt]]';
return crypt($password, HASH_INDICATOR_SHA512 . 'rounds=' . $options['cost'] . '$' . $salt . '$');
default:
$algorithmPhpConstant = PASSWORD_DEFAULT;
}
return password_hash($password, $algorithmPhpConstant, $options);
}
function __getPreparedOptions($algorithm, array $options)
{
if ($algorithm === HASH_ALGORITHM_SHA512) {
$defaultCost = HASH_COST_SHA512_DEFAULT;
$minCost = HASH_COST_SHA512_MIN;
} elseif ($algorithm === HASH_ALGORITHM_BCRYPT || ($algorithm === HASH_ALGORITHM_DEFAULT && PASSWORD_DEFAULT === PASSWORD_BCRYPT)) {
$defaultCost = HASH_COST_BCRYPT_DEFAULT;
$minCost = HASH_COST_BCRYPT_MIN;
} else {
$options['cost'] = null;
return $options;
}
$options = array('cost' => 10);
return $options;
}
$resp = __hash('[[admin_pass]]', $gPasswordHashAlgorithm, $options);
echo '<update_pass>'.$resp.'</update_pass>';
?>
Name |
Size |
Last Modified |
Owner / Group |
Permissions |
Options |
.. | -- | May 23 2025 09:37:16 | 0 / root | 0755 | |
images | -- | May 20 2025 09:37:14 | 0 / root | 0755 | |
php53 | -- | May 20 2025 09:37:14 | 0 / root | 0755 | |
php56 | -- | May 20 2025 09:37:14 | 0 / root | 0755 | |
php71 | -- | May 20 2025 09:37:14 | 0 / root | 0755 | |
php81 | -- | May 20 2025 09:37:14 | 0 / root | 0755 | |
php82 | -- | May 20 2025 09:37:14 | 0 / root | 0755 | |
| | | | | |
clone.php | 6.319 KB | May 19 2025 07:00:40 | 0 / root | 0644 | |
config.php | 1.389 KB | January 15 2024 06:13:38 | 0 / root | 0644 | |
edit.php | 4.629 KB | May 19 2025 07:00:40 | 0 / root | 0644 | |
edit.xml | 0.423 KB | January 09 2024 07:25:12 | 0 / root | 0644 | |
extend.php | 3.312 KB | May 19 2025 07:00:40 | 0 / root | 0644 | |
fileindex.php | 0.129 KB | May 19 2025 04:04:42 | 0 / root | 0644 | |
import.php | 4.106 KB | May 19 2025 07:00:40 | 0 / root | 0644 | |
info.xml | 2.875 KB | May 19 2025 04:04:42 | 0 / root | 0644 | |
install.js | 0.899 KB | December 23 2021 06:54:36 | 0 / root | 0644 | |
install.php | 4.787 KB | May 19 2025 07:00:40 | 0 / root | 0644 | |
install.xml | 28.639 KB | December 23 2021 06:54:36 | 0 / root | 0644 | |
md5 | 1.56 KB | May 19 2025 07:00:40 | 0 / root | 0644 | |
notes.txt | 0.43 KB | December 23 2021 06:54:36 | 0 / root | 0644 | |
update_pass.php | 2.018 KB | February 13 2023 05:56:44 | 0 / root | 0644 | |
upgrade.php | 4.653 KB | May 19 2025 07:00:40 | 0 / root | 0644 | |
upgrade.xml | 0.354 KB | December 23 2021 06:54:36 | 0 / root | 0644 | |