!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)

/usr/share/nginx/html/automatas/   drwxrwxrwx
Free 83.29 GB of 96.73 GB (86.1%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

 


// a function for resize the images(png,jpg,gif) in a directory
//for the png you must have the zlib actived

//$diror origin directory
//$dirdest destination directory
//$val value of resize(1,2,3..)
//$qual quality(80 if you don't know)
$origen='../frames/includes/';
$destino='../frames/includes2/';
$resize=1;
$calidad=70;


imgress($origen,$destino,$resize,$calidad);








function 
imgress($diror,$dirdest,$val,$qual){
$q=$qual;
//open the directory
if (is_dir($diror)) {
   if (
$dh opendir($diror)) {
      while ((
$file readdir($dh)) !== false) {
        if(
$file == "." || $file == ".."){continue;}
                 
$k=explode(".",$file);
            if(
strpos($k[1],"jpg")===|| strpos($k[1],"jpeg")===0){
            
$salva=$dirdest.$file;
                    
$image=$diror.$file;
            
$im =imagecreatefromjpeg("$image");
            
$x=imagesx($im);
            
$y=imagesy($im); 
            if (
$x<>132 or $y<>216){
            
$k=array("salidaenfalso","salidaenfalso");
            } 
            
$thumbnail=imagecreatetruecolor(132,216);
            
$im_ridimensionata=imagecopyresized$thumbnail$im0000132,
            
216$x$y);
            
imagejpeg($thumbnail$salva$q);        
                    }
            elseif(
strpos($k[1],"gif")===0){
            
$salva=$dirdest.$file;
                    
$image=$diror.$file;
            
$im =imagecreatefromgif("$image");
            
$x=imagesx($im);
            
$y=imagesy($im);   
            
$thumbnail=imagecreatetruecolor(132,216);
            
$im_ridimensionata=imagecopyresized$thumbnail$im0000132,
            
216$x$y);
            
imagegif($thumbnail$salva$q);
                }
            elseif(
strpos($k[1],"png")===0){
            
$salva=$dirdest.$file;
                    
$image=$diror.$file;
            
$im =imagecreatefrompng("$image");
            
$x=imagesx($im);
            
$y=imagesy($im);   
            
$thumbnail=imagecreatetruecolor(132,216);
            
$im_ridimensionata=imagecopyresized$thumbnail$im0000132,
            
216$x$y);
            
imagepng($thumbnail$salva$q);
                }
            else{
                echo 
"$diror File not compatible(no jpg,gif or png)";
            } 
            
flush();  
            }
            
closedir($dh);
            }else{
                echo 
"no se pudo abrir";
            }
    }
}








?>























 


:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

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