!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/var/softaculous/mahara/   drwxr-xr-x
Free 293.8 GB of 429.69 GB (68.38%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     update_pass.php (1.23 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

$resp 
__encrypt_password('[[admin_pass]]''[[salt]]''$2a$' '12' '$''[[passwordsaltmain]]');
echo 
'<update_pass>'.$resp.'</update_pass>';

function 
__encrypt_password($password$salt=''$alg='$6$'$sitesalt='') {
    if (
$salt == '') {
        
$salt substr(md5(rand(10000009999999)), 28);
    }
    if (
$alg == '$6$') { // $6$ is the identifier for the SHA512 algorithm
        // Return a hash which is sha512(originalHash, salt), where original is sha1(salt + password)
        
$password sha1($salt $password);
        
// Generate a salt based on a supplied salt and the passwordsaltmain
        
$fullsalt substr(md5($sitesalt $salt), 016); // SHA512 expects 16 chars of salt
    
}
    else { 
// This is most likely bcrypt $2a$, but any other algorithm can take up to 22 chars of salt
        // Generate a salt based on a supplied salt and the passwordsaltmain
        
$fullsalt substr(md5($sitesalt $salt), 022); // bcrypt expects 22 chars of salt
    
}
    
$hash crypt($password$alg $fullsalt);
    
// Strip out the computed salt
    // We strip out the salt hide the computed salt (in case the sitesalt was used which isn't in the database)
    
$hash substr($hash0strlen($alg)) . substr($hashstrlen($alg)+strlen($fullsalt));
    return 
$hash;
}

@
unlink('update_pass.php');
?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0931 ]--