!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.56 GB of 61.93 GB (23.51%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

class servicio extends toba_servicio_web
{
    function 
inicializar($parametros=array())
    {
        
//Agrego la clave publica dinamicamente
        
$carpeta dirname(__FILE__);
        
        
//Asocia un ID (agronomia=..) a un certificado de cliente dado 
        
$this->agregar_mapeo_firmas($carpeta.'/cliente.crt'
                                array(
                                    
'dependencia' => 'agronomia',
                                    
'otro' => 'test'
                                

                            );
    }

    static function 
get_opciones()
    {
        
$carpeta dirname(__FILE__);
        
        
//Agrego los certificados manualmente
        
$cert_cliente ws_get_cert_from_file($carpeta."/cliente.crt");
        
$cert_server ws_get_cert_from_file($carpeta.'/servidor.crt');
        
$clave_privada ws_get_cert_from_file($carpeta."/servidor.pkey");
        
$seguridad = array(
                    
"sign" => true,
                    
"encrypt" => true,
                    
"algorithmSuite" => "Basic256Rsa15",
                    
"securityTokenReference" => "IssuerSerial");

        
$policy = new WSPolicy(array("security"=> $seguridad));
        
$security = new WSSecurityToken(array(
                                            
"privateKey" => $clave_privada,
                                            
"certificate" => $cert_server)
        );

        return array(
            
"seguro"            => true,            //Esta opción fuerza a que el mensaje tiene que estar firmado/encriptado
            
"policy"             => $policy,
            
"securityToken"        => $security,
             
'actions' => array(
                    
"http://siu.edu.ar/toba_referencia/serv_pruebas/test" => "test",
            ),
        );
    }


    
/**
     * Responde exactamente con la misma cadena enviada
     * @param string $texto texto a repetir
     * @return string $texto texto repetido
     */
    
function op__test(toba_servicio_web_mensaje $mensaje)
    {
        
$xml = new SimpleXMLElement($mensaje->get_payload());
        
$texto xml_encode(xml_decode($xml->texto));
        
$dependencia xml_encode($this->get_id_cliente('dependencia'));        
        
$payload = <<<XML
<ns1:test xmlns:ns1="http://siu.edu.ar/toba_referencia/pruebas">
    <texto>Texto: 
$texto 
    Dependencia: 
$dependencia</texto>
</ns1:test>
XML;
        return new 
toba_servicio_web_mensaje($payload);
    }

}

?>

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