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


Viewing file:     ci_cliente.php (3.65 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
class ci_cliente extends toba_ci
{
    protected 
$s__echo;
    protected 
$s__datos_password;
    protected 
$s__adjunto;
    protected 
$adjunto_respuesta;
    protected 
$datos_persona;
    protected 
$path_servicio "servicios/seguro_codigo/servicio.php";
    
    function 
ini()
    {
        if (! 
extension_loaded('wsf')) {
            
toba::notificacion()->error("No se encuentra instalada la extensión wsf de php.".
            
" <a href='http://toba.siu.edu.ar/trac/toba/wiki/Referencia/ServiciosWeb'>Ver documentación</a>");
        }
    }
    
    
    
/**
    * Seguridad programada completamente
    */    
    
function evt__form__enviar($datos)
    {
        
$carpeta dirname(__FILE__);
        
        
//--1- Arma el mensaje    (incluyendo los headers)    
        
$this->s__echo $datos;
        
$clave xml_encode($datos['clave']);
        
$valor xml_encode($datos['valor']);
        
$payload = <<<XML
<ns1:test xmlns:ns1="http://siu.edu.ar/toba_referencia/serv_pruebas">
    <texto>
$clave $valor</texto>
</ns1:test>
XML;
        
$mensaje = new toba_servicio_web_mensaje($payload);
        
        
//--2- Arma el servicio indicando certificado del server y clave privada del cliente
        
$cert_server ws_get_cert_from_file($carpeta.'/servidor.crt');
        
$clave_privada ws_get_key_from_file($carpeta."/cliente.pkey");
        
$cert_cliente ws_get_cert_from_file($carpeta."/cliente.crt");
    
        
$seguridad = array(    
                        
"sign" => true,
                        
"encrypt" => true,
                        
"algorithmSuite" => "Basic256Rsa15",
                        
"securityTokenReference" => "IssuerSerial");
    
        
$policy = new WSPolicy(array("security" => $seguridad));
        
$security_token = new WSSecurityToken(array("privateKey" => $clave_privada,    //Encriptación
                                            
"receiverCertificate" => $cert_server,    //Encriptación
                                            
"certificate"         => $cert_cliente,    //Firmado
                                            
)
                        );        
        
$opciones = array(
                    
'to' => 'http://localhost/'.toba_recurso::url_proyecto().'/servicios.php/serv_seguro_codigo',
                    
'action' => 'http://siu.edu.ar/toba_referencia/serv_pruebas/test',
                    
'policy' => $policy
                    
'securityToken' => $security_token
        
);        
        
$servicio toba::servicio_web('cli_seguro'$opciones);
    
        
//-- 3 - Muestra la respuesta        
        
$respuesta $servicio->request($mensaje);
        
toba::notificacion()->info($respuesta->get_payload());        
    }

    
//-----------------------------------------------------------------------------
    //---- Utilidades  -----------------------------------------------------------
    //------------------------------------------------------------------------------
    
    
function post_configurar()
    {
        
parent::post_configurar();
        
$img toba_recurso::imagen_toba('nucleo/php.gif'true);
        
$cliente 'servicios/seguro_codigo/ci_cliente.php';
        
$url_cliente toba::vinculador()->get_url('toba_editor''30000014', array('archivo' => $cliente), array('prefijo' => toba_editor::get_punto_acceso_editor()));        
        
$url_servicio toba::vinculador()->get_url('toba_editor''30000014', array('archivo' => $this->path_servicio), array('prefijo'=>toba_editor::get_punto_acceso_editor()));
        
$html "<div style='float:right; background-color:white; padding: 10px'><a target='logger' href='$url_cliente'>$img Ver .php del Cliente</a>";
        
$html .= "<br><a target='logger' href='$url_servicio'>$img Ver .php del Servicio</a>";
        
$url_ejemplos 'http://repositorio.siu.edu.ar/trac/toba/wiki/Referencia/ServiciosWeb';
        
$html .= "<br>Documentación de <a target='_blank' href='$url_ejemplos'>servicios web en toba</a></div>";
        
$html .= $this->pantalla()->get_descripcion();        
        
$this->pantalla()->set_descripcion($html);
    }
    
    function 
formatear_valor($valor)
    {
        
$estilo 'style="background-color: white; border: 1px solid gray; padding: 5px;"';        
        return  
"<pre $estilo>".htmlentities($valor).'</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: 1.0911 ]--