403Webshell
Server IP : 103.82.32.14  /  Your IP : 216.73.217.55
Web Server : Apache/2.2.32 (Unix) mod_ssl/2.2.32 OpenSSL/1.0.1e-fips mod_fcgid/2.3.9
System : Linux cloud.lonmanhoabinh.com 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64
User : lonmakmf ( 524)
PHP Version : 5.6.30
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /home/phimluka/public_html/photo/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/phimluka/public_html/photo/library.php
<?php 
    //You can change this gKey with your own (32 characters).
    $gKey = 'welcometoapicodesdotcomthisiskey';
    
    function decode($pData)
    {
        global $gKey;
        
        $lData = str_replace(' ','+', $pData);
        
        $lBase64Decoded_Payload = base64_decode($lData);
        
        $lEncrypted_PlainText = substr($lBase64Decoded_Payload, 16); 
        
        $lIV = substr($lBase64Decoded_Payload, 0, 16);
        
        $lDecrypted_PlainText = mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $gKey, $lEncrypted_PlainText, MCRYPT_MODE_CBC, $lIV);
        
        $lBase64Decoded_PlainText = base64_decode($lDecrypted_PlainText);

        return $lBase64Decoded_PlainText;
    }

    function encode($pData)
    {
        global $gKey;
        
        $lBase64Encoded_PlainText = base64_encode($pData);
        
        $lIV = GenerateIV();

        $lEncrypted_PlainText = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $gKey, $lBase64Encoded_PlainText, MCRYPT_MODE_CBC, $lIV);
        
        $lPayload = $lIV.$lEncrypted_PlainText;
        
        $lBase64Encoded_Payload = base64_encode($lPayload);

        return $lBase64Encoded_Payload;
    }
    
    function GenerateIV()
    {
        $lIV = mcrypt_create_iv(16, MCRYPT_DEV_URANDOM);
        while(strlen($lIV) < 16)
        {
            $lIV .= "\0";
        }
        return $lIV;
    }

?>

Youez - 2016 - github.com/yon3zu
LinuXploit