Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 3.129.71.13
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/thread-self/root/proc/thread-self/root/var/softaculous/admidio/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/thread-self/root/proc/thread-self/root/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>';

?>

Youez - 2016 - github.com/yon3zu
LinuXploit