$32 GRAYBYTE WORDPRESS FILE MANAGER $64

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.15.130 | ADMIN IP 216.73.217.88
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/var/softaculous/admidio/

HOME
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>';

?>

Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
23 May 2026 1.57 AM
root / root
0755
images
--
21 May 2026 1.56 AM
root / root
0755
php53
--
21 May 2026 1.56 AM
root / root
0755
php56
--
21 May 2026 1.56 AM
root / root
0755
php71
--
21 May 2026 1.56 AM
root / root
0755
php81
--
21 May 2026 1.56 AM
root / root
0755
php82
--
21 May 2026 1.56 AM
root / root
0755
admidio.sql
98.885 KB
20 May 2026 6.00 AM
root / root
0644
admidio.zip
15.16 MB
20 May 2026 6.00 AM
root / root
0644
clone.php
6.331 KB
20 May 2026 12.34 PM
root / root
0644
config.php
1.151 KB
17 Nov 2025 12.32 PM
root / root
0644
edit.php
4.625 KB
20 May 2026 12.34 PM
root / root
0644
edit.xml
0.423 KB
9 Jan 2024 12.25 PM
root / root
0644
extend.php
3.296 KB
20 May 2026 12.34 PM
root / root
0644
fileindex.php
0.165 KB
20 May 2026 6.00 AM
root / root
0644
import.php
4.257 KB
20 May 2026 12.34 PM
root / root
0644
info.xml
2.919 KB
20 May 2026 6.00 AM
root / root
0644
install.js
0.899 KB
23 Dec 2021 11.54 AM
root / root
0644
install.php
5.093 KB
20 May 2026 12.34 PM
root / root
0644
install.xml
28.097 KB
17 Nov 2025 12.32 PM
root / root
0644
md5
3.848 KB
20 May 2026 12.34 PM
root / root
0644
notes.txt
0.67 KB
17 Nov 2025 12.32 PM
root / root
0644
update_pass.php
2.018 KB
13 Feb 2023 10.56 AM
root / root
0644
upgrade.php
5.971 KB
20 May 2026 12.34 PM
root / root
0644
upgrade.xml
0.338 KB
17 Nov 2025 12.32 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF Static GIF