!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/nucleo/lib/   drwxrwxr-x
Free 14.67 GB of 61.93 GB (23.69%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     toba_escapador.php (2.1 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
use Zend\Escaper\Escaper;
class 
toba_escapador extends Escaper
{
    private 
$_es_editor;
    private 
$tags_formato = array('b''i','p','s','u''em''pre''strike''strong''span');
    
    function 
__construct($encoding null)
    {
        
$this->_es_editor = (toba::proyecto()->get_id() === 'toba_editor');
        
parent::__construct($encoding);
    }
        
    function 
escapeHtml($input)
    {        
        if (isset(
$this->_es_editor) && ($this->_es_editor === true)) {
            return 
htmlentities($inputENT_QUOTES apex_default_charset);
        }
        
$tags $this->quitar_tags($input);
        if (! empty(
$tags)) {
            
$resultado '';
            for( 
$i 0$i count(current($tags)); $i++) {
                if (isset(
$tags[1][$i])) {
                    
$valor =  parent::escapeHtml($tags[2][$i]);
                    
$resultado .=  "<{$tags[1][$i]}>{$valor}</{$tags[1][$i]}>";
                }
            }
        } else {
            
$resultado parent::escapeHtml($input);
        }
        return  
$resultado;
    }
    
    function 
escapeHtmlAttr($input)
    {
        
$tags $this->quitar_tags($input);    
        if (! empty(
$tags)) {
            
$resultado '';
            for( 
$i 0$i count(current($tags)); $i++) {
                if (isset(
$tags[1][$i])) {
                    
$valor =  (isset($this->_es_editor) && ($this->_es_editor === true)) ? $tags[2][$i] : parent::escapeHtmlAttr($tags[2][$i]);
                    
$resultado .=  "<{$tags[1][$i]}>{$valor}</{$tags[1][$i]}>";
                }
            }
        } else {
            
$resultado = (isset($this->_es_editor) && ($this->_es_editor === true)) ? $inputparent::escapeHtmlAttr($input);
        }
        return  
$resultado;
    }
    
    function 
escapeCss($texto)
    {
        return (isset(
$this->_es_editor) && ($this->_es_editor === true)) ? $textoparent::escapeCss($texto);
    }
    
    function 
escapeJs($texto)
    {
        return (isset(
$this->_es_editor) && ($this->_es_editor === true)) ? $textoparent::escapeJs($texto);
    }
    
    function 
quitar_tags($input)
    {        
        
$lista_tags implode('|'$this->tags_formato);
        
$pattern '@<('$lista_tags.')>(.*?)</\1>@i';
        if (! 
is_array($input)) {
            
$cant preg_match_all($pattern$input$matches);
        } else {
            throw new 
toba_error_def('Se esta pasando un array o una matriz a un campo que espera un valor escalar');
        }
        return (
$cant !== 0  && $cant !== false) ? $matches : array();
    }    
}
?>

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