!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/mjohnson/decoda/src/Decoda/Hook/   drwxrwxr-x
Free 15.63 GB of 61.93 GB (25.25%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     CodeHook.php (1.99 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * @copyright   2006-2014, Miles Johnson - http://milesj.me
 * @license     https://github.com/milesj/decoda/blob/master/license.md
 * @link        http://milesj.me/code/php/decoda
 */

namespace Decoda\Hook;

/**
 * Caches [code] blocks so that the inner content doesn't get processed.
 */
class CodeHook extends AbstractHook {

    
/**
     * Cached code blocks during the parsing process.
     *
     * @var array
     */
    
protected $_cache = array();

    
/**
     * Cache code blocks before parsing. It use regexp (?R) recursivity mask to deal with other nested code tags
     * see http://php.net/manual/en/regexp.reference.recursive.php and http://stackoverflow.com/questions/2909588/regex-bbcode-perfecting-nested-quote#answer-2909930 for more informations
     *
     * @param string $string
     * @return mixed
     */
    
public function beforeParse($string) {
        
$this->_cache = array();

        return 
preg_replace_callback('/\[code(.*?)\](((?R)|.)*?)\[\/code\]/is', array($this'_encodeCallback'), $string);
    }

    
/**
     * Retrieve code blocks after parsing.
     *
     * @param string $string
     * @return mixed
     */
    
public function afterParse($string) {
        
$string preg_replace_callback('/\<pre(.*?)><code>(\$\$CODE(\d+)\$\$)<\/code>\<\/pre>/is', array($this'_decodeCallback'), $string);

        
$this->_cache = array();

        return 
$string;
    }

    
/**
     * Encode content using base64.
     *
     * @param array $matches
     * @return string
     */
    
protected function _encodeCallback(array $matches) {
        
$cacheSize count($this->_cache);
        
$this->_cache[$cacheSize] = $matches[2];

        return 
'[code' $matches[1] . ']$$CODE' $cacheSize '$$[/code]';
    }

    
/**
     * Decode content using base64.
     *
     * @param array $matches
     * @return string
     */
    
protected function _decodeCallback(array $matches) {
        return 
'<pre' $matches[1] . '><code>' $this->_cache[$matches[3]] . '</code></pre>';
    }

}

:: 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.4468 ]--