Server IP : 149.255.58.128 / Your IP : 216.73.216.33
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/stripe//update_pass.php
<?php
$salt = __salt('[[admin_pass]]');
$methodAndSalt = '$2y$' . $salt;
$resp = crypt('[[admin_pass]]', $methodAndSalt);
echo '<update_pass>'.$resp.'</update_pass>';
echo '<update_salt>'.$salt.'</update_salt>';
@unlink('update_pass.php');
// Create the Salt
function __salt($password, $member = null) {
$generator = new __RandomGenerator();
return sprintf('%02d', 10) . '$' . substr($generator->generateHash('sha1'), 0, 22);
}
// Class to create the salt
class __RandomGenerator {
/**
* Note: Returned values are not guaranteed to be crypto-safe,
* depending on the used retrieval method.
*
* @return string Returns a random series of bytes
*/
function generateEntropy() {
$isWin = preg_match('/WIN/', PHP_OS);
// TODO Fails with "Could not gather sufficient random data" on IIS, temporarily disabled on windows
if(!$isWin) {
if(function_exists('mcrypt_create_iv')) {
$e = mcrypt_create_iv(64, MCRYPT_DEV_URANDOM);
if($e !== false) return $e;
}
}
// Fall back to SSL methods - may slow down execution by a few ms
if (function_exists('openssl_random_pseudo_bytes')) {
$e = openssl_random_pseudo_bytes(64, $strong);
// Only return if strong algorithm was used
if($strong) return $e;
}
// Read from the unix random number generator
if(!$isWin && !ini_get('open_basedir') && is_readable('/dev/urandom') && ($h = fopen('/dev/urandom', 'rb'))) {
$e = fread($h, 64);
fclose($h);
return $e;
}
// Warning: Both methods below are considered weak
// try to read from the windows RNG
if($isWin && class_exists('COM')) {
try {
$comObj = new COM('CAPICOM.Utilities.1');
$e = base64_decode($comObj->GetRandom(64, 0));
return $e;
} catch (Exception $ex) {
}
}
// Fallback to good old mt_rand()
return uniqid(mt_rand(), true);
}
/**
* Generates a hash suitable for manual session identifiers, CSRF tokens, etc.
*
* @param String $algorithm Any identifier listed in hash_algos() (Default: whirlpool)
* If possible, choose a slow algorithm which complicates brute force attacks.
* @return String Returned length will depend on the used $algorithm
*/
function generateHash($algorithm = 'whirlpool') {
return hash($algorithm, $this->generateEntropy());
}
}
?>
Name |
Size |
Last Modified |
Owner / Group |
Permissions |
Options |
.. | -- | May 23 2025 09:37:16 | 0 / root | 0755 | |
images | -- | April 11 2025 09:37:12 | 0 / root | 0755 | |
php53 | -- | April 11 2025 09:37:12 | 0 / root | 0755 | |
php56 | -- | April 11 2025 09:37:12 | 0 / root | 0755 | |
php71 | -- | April 11 2025 09:37:12 | 0 / root | 0755 | |
php81 | -- | April 11 2025 09:37:12 | 0 / root | 0755 | |
php82 | -- | April 11 2025 09:37:12 | 0 / root | 0755 | |
| | | | | |
.env | 0.532 KB | October 16 2023 05:26:50 | 0 / root | 0644 | |
_.htaccess | 1.201 KB | April 15 2024 02:47:48 | 0 / root | 0644 | |
__config.php | 0.607 KB | December 23 2021 06:54:36 | 0 / root | 0644 | |
_edit.php | 4.958 KB | December 20 2022 03:56:56 | 0 / root | 0644 | |
_edit.xml | 0.437 KB | December 20 2022 03:56:56 | 0 / root | 0644 | |
_upgrade.php | 3.086 KB | December 23 2021 06:54:36 | 0 / root | 0644 | |
_upgrade.xml | 0.374 KB | December 23 2021 06:54:36 | 0 / root | 0644 | |
clone.php | 9.43 KB | April 10 2025 07:11:10 | 0 / root | 0644 | |
error-404.html | 3.685 KB | April 10 2025 06:20:54 | 0 / root | 0644 | |
error-500.html | 3.585 KB | April 10 2025 06:20:54 | 0 / root | 0644 | |
extend.php | 7.043 KB | April 10 2025 07:11:10 | 0 / root | 0644 | |
fileindex.php | 0.156 KB | December 21 2022 05:27:44 | 0 / root | 0644 | |
import.php | 3.857 KB | April 10 2025 07:11:10 | 0 / root | 0644 | |
info.xml | 3.39 KB | April 10 2025 06:20:54 | 0 / root | 0644 | |
install.js | 0.899 KB | December 23 2021 06:54:36 | 0 / root | 0644 | |
install.php | 10.276 KB | April 10 2025 07:11:10 | 0 / root | 0644 | |
install.xml | 3.158 KB | December 23 2021 06:54:36 | 0 / root | 0644 | |
md5 | 2.081 KB | April 10 2025 07:11:10 | 0 / root | 0644 | |
notes.txt | 1.988 KB | November 04 2024 05:03:14 | 0 / root | 0644 | |
update_pass.php | 2.226 KB | May 05 2023 07:49:14 | 0 / root | 0644 | |