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


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

/**
 * Solicitud pensada para ejecutar items en la consola
 * De esta forma se cuenta con la capacidad de usar las librerias de toba
 * aunque no se tiene acceso al esquema de componentes, pensados para la arquitectura web
 * 
 * @package Centrales
 */
class toba_solicitud_consola extends toba_solicitud
{
    protected 
$estado_proceso 0;
    
    function 
__construct($info)
    {
        
$this->info $info;
        
$_SERVER["REMOTE_ADDR"]="localhost";
        
$_SERVER["REQUEST_METHOD"] = "GET";
        
parent::__construct(toba::memoria()->get_item_solicitado(),toba::usuario()->get_id());
    }
    
    function 
procesar()
    {
        
$accion $this->info['basica']['item_act_accion_script'];    
        require(
$accion);
    }

    
/**
     * Registra los parametros de la llamada en un array asociativo
     */
    
function registrar_parametros()
    {
        global 
$argv;
        
$this->parametros = array();
        for(
$a=6;$a<count($argv);$a++) {
            if (
preg_match("/^-/",$argv[$a])) { //Es un modificador
                
$pila_modificadores[$a] = $argv[$a];
                
$this->parametros[$pila_modificadores[$a]] = '';
            } else {    
//Es la asignacion de un modificador
                
if(isset($pila_modificadores[$a-1])) {
                    
$this->parametros[$pila_modificadores[$a-1]]=$argv[$a];
                } else {
                    echo 
"\n ERROR PARSEANDO PARAMETROS: Los modificadores no pueden contener espacios\n";
                    echo 
" El error ha ocurrido entre las cadenas: \"" $argv[$a-1] ."\" y \""$argv[$a] ."\"\n";
                    echo 
" (Si esta definiendo una REGEXP utilice \"/s\")\n";
                    exit(
222);
                }
            }    
        }
        
//Seteo el modo DEBUG
        
if (isset($this->parametros["--debug"])) {
            
$this->debug true;
        } else {
            
$this->debug false;
        }
    }
    
    
/**
     * Retorna el estado actual de la operación
     * El estado de la operación se retorna al sistema cuando termina la operación
     */
    
function get_estado_proceso()
    {
        return 
$this->estado_proceso;
    }
    
    
/**
     * Cambia el estado que se retorna al sistema cuando termina la operación
     * @param int $estado Entero entre 0 y 254
     */
    
function set_estado_proceso($estado)
    {
        
$this->estado_proceso $estado;
    }

    function 
registrar($llamada=null)
    {
        if(isset(
$llamada)){
            
$str_llamada addslashes(implode(" ",$llamada));
            echo(
$str_llamada);
        }else{
            
$str_llamada "";
        }
        
parent::registrar();
        if(
$this->registrar_db) {
            
toba::instancia()->registrar_solicitud_consola($this->info['basica']['item_proyecto'], $this->id$this->usuario$str_llamada);
        }
    }
}
?>

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