!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_led/php/vendor/ircmaxell/random-lib/lib/RandomLib/   drwxrwxr-x
Free 15.59 GB of 61.93 GB (25.18%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     AbstractMcryptMixer.php (3.67 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/*
 * The RandomLib library for securely generating random numbers and strings in PHP
 *
 * @author     Anthony Ferrara <ircmaxell@ircmaxell.com>
 * @copyright  2011 The Authors
 * @license    http://www.opensource.org/licenses/mit-license.html  MIT License
 * @version    Build @@version@@
 */

/**
 * The Mcrypt abstract mixer class
 *
 * PHP version 5.3
 *
 * @category   PHPCryptLib
 * @package    Random
 * @subpackage Mixer
 *
 * @author     Anthony Ferrara <ircmaxell@ircmaxell.com>
 * @copyright  2013 The Authors
 * @license    http://www.opensource.org/licenses/mit-license.html  MIT License
 *
 * @version    Build @@version@@
 */
namespace RandomLib;

/**
 * The mcrypt abstract mixer class
 *
 * @category   PHPCryptLib
 * @package    Random
 * @subpackage Mixer
 *
 * @author     Anthony Ferrara <ircmaxell@ircmaxell.com>
 * @author     Chris Smith <chris@cs278.org>
 */
abstract class AbstractMcryptMixer extends AbstractMixer
{
    
/**
     * mcrypt module resource
     *
     * @var resource
     */
    
private $mcrypt;

    
/**
     * Block size of cipher
     *
     * @var int
     */
    
private $blockSize;

    
/**
     * Cipher initialization vector
     *
     * @var string
     */
    
private $initv;

    
/**
     * {@inheritdoc}
     */
    
public static function test()
    {
        return 
extension_loaded('mcrypt');
    }

    
/**
     * Construct mcrypt mixer
     */
    
public function __construct()
    {
        
$this->mcrypt    mcrypt_module_open($this->getCipher(), ''MCRYPT_MODE_ECB'');
        
$this->blockSize mcrypt_enc_get_block_size($this->mcrypt);
        
$this->initv     str_repeat(chr(0), mcrypt_enc_get_iv_size($this->mcrypt));
    }

    
/**
     * Performs cleanup
     */
    
public function __destruct()
    {
        if (
$this->mcrypt) {
            
mcrypt_module_close($this->mcrypt);
        }
    }

    
/**
     * Fetch the cipher for mcrypt.
     *
     * @return string
     */
    
abstract protected function getCipher();

    
/**
     * {@inheritdoc}
     */
    
protected function getPartSize()
    {
        return 
$this->blockSize;
    }

    
/**
     * {@inheritdoc}
     */
    
protected function mixParts1($part1$part2)
    {
        return 
$this->encryptBlock($part1$part2);
    }

    
/**
     * {@inheritdoc}
     */
    
protected function mixParts2($part1$part2)
    {
        return 
$this->decryptBlock($part2$part1);
    }

    
/**
     * Encrypts a block using the suppied key
     *
     * @param string $input Plaintext to encrypt
     * @param string $key   Encryption key
     *
     * @return string Resulting ciphertext
     */
    
private function encryptBlock($input$key)
    {
        if (!
$input && !$key) {
            return 
'';
        }

        
$this->prepareCipher($key);
        
$result mcrypt_generic($this->mcrypt$input);
        
mcrypt_generic_deinit($this->mcrypt);

        return 
$result;
    }

    
/**
     * Derypts a block using the suppied key
     *
     * @param string $input Ciphertext to decrypt
     * @param string $key   Encryption key
     *
     * @return string Resulting plaintext
     */
    
private function decryptBlock($input$key)
    {
        if (!
$input && !$key) {
            return 
'';
        }

        
$this->prepareCipher($key);
        
$result mdecrypt_generic($this->mcrypt$input);
        
mcrypt_generic_deinit($this->mcrypt);

        return 
$result;
    }

    
/**
     * Sets up the mcrypt module
     *
     * @param string $key
     *
     * @return void
     */
    
private function prepareCipher($key)
    {
        if (
!== mcrypt_generic_init($this->mcrypt$key$this->initv)) {
            throw new \
RuntimeException('Failed to prepare mcrypt module');
        }
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.4875 ]--