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


Viewing file:     toba_clase_datos.php (2.51 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Esta clase representa a una clase estatica cuyos metodos proveen informacion fija.
 * @ignore
 */
class toba_clase_datos
{
    private 
$nombre;
    private 
$path null;
    private 
$metodos=array();
    
    function 
__construct$nombre$path null )
    {
        
$this->nombre $nombre;
        if ( isset( 
$path ) ) {
            
$this->path $path;
            if ( 
file_exists$this->path ) ) {
                
$this->cargar_clase();
            }
        }
    }

    function 
cargar_clase()
    {
        require_once( 
$this->path );
        
$metodos = array();
        
$clase = new ReflectionClass$this->nombre );
        foreach ( 
$clase->getMethods() as $metodo ){
            
$nombre $metodo->getName();
            
$datos $metodo->invokenull );
            
$this->metodos$nombre ] = $datos;
        }
    }

    
//-----------------------------------------------------------
    //    Manipulacion de la informacion de la clase
    //-----------------------------------------------------------

    
function existe_metodo$nombre )
    {
        return isset( 
$this->metodos$nombre ] );
    }

    function 
agregar_metodo_datos($nombre$datos)
    {
        
$this->metodos$nombre ] = $datos;
    }

    function 
eliminar_metodo_datos$nombre )
    {
        if ( isset( 
$this->metodos$nombre ] ) ) {
            unset( 
$this->metodos$nombre ] );
        } else {
            throw new 
toba_error("El metodo '$nombre' no existe");
        }
    }

    function 
get_datos_metodo$nombre 
    {
        if ( isset( 
$this->metodos$nombre ] ) ) {
            return 
$this->metodos$nombre ];
        } else {
            throw new 
toba_error("El metodo '$nombre' no existe");
        }
    }
    
    function 
set_datos_metodo$nombre$datos 
    {
        if ( isset( 
$this->metodos$nombre ] ) ) {
            
$this->metodos$nombre ] = $datos;
        } else {
            throw new 
toba_error("El metodo '$nombre' no existe");
        }
    }

    
//-----------------------------------------------------------
    //    Generacion
    //-----------------------------------------------------------

    
function guardar$archivo null )
    {
        if ( ! isset( 
$archivo ) ) {
            if ( ! isset( 
$this->path ) )  {
                throw new 
toba_error('Es necesario especificar el PATH de la clase que se desea generar');    
            } else {
                
$archivo $this->path;    
            }
        }
        
file_put_contents($archivo$this->generar_php() );
    }

    private function 
generar_php()
    {
        
$php "<?php\n";
        
$php .= $this->get_contenido();
        
$php .= "\n?>";
        return 
$php;    
    }

    function 
get_contenido()
    {

        
$php "\nclass $this->nombre\n{\n";
        foreach ( 
$this->metodos as $metodo => $datos ) {
            
$php .= "\tstatic function $metodo()\n\t{\n";
            
$php .= "\t\treturn " var_export$datostrue) . ";\n";
            
$php .= "\t}\n";
            
$php .= "\n";
        }
        
$php .= "}\n";
        return 
$php;
    }
}
?>

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