!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/phpMY/   drwxrwxrwx
Free 83.33 GB of 96.73 GB (86.15%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     file_echo.php (2.03 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
 * "Echo" service to allow force downloading of exported charts (png or svg)
 * and server status monitor settings
 *
 * @package PhpMyAdmin
 */

require_once './libraries/common.inc.php';

/* For chart exporting */
if (isset($_REQUEST['filename']) && isset($_REQUEST['image'])) {
    
$allowed = array(
        
'image/png'     => 'png',
        
'image/svg+xml' => 'svg',
    );

    
/* Check whether MIME type is allowed */
    
if (! isset($allowed[$_REQUEST['type']])) {
        die(
__('Invalid export type'));
    }

    
/*
     * Check file name to match mime type and not contain new lines
     * to prevent response splitting.
     */
    
$extension $allowed[$_REQUEST['type']];
    
$valid_match '/^[^\n\r]*\.' $extension '$/';
    if (! 
preg_match($valid_match$_REQUEST['filename'])) {
        if (! 
preg_match('/^[^\n\r]*$/'$_REQUEST['filename'])) {
            
/* Filename is unsafe, discard it */
            
$filename 'download.' $extension;
        } else {
            
/* Add extension */
            
$filename $_REQUEST['filename'] . '.' $extension;
        }
    } else {
        
/* Filename from request should be safe here */
        
$filename $_REQUEST['filename'];
    }

    
/* Decode data */
    
if ($extension != 'svg') {
        
$data substr($_REQUEST['image'], strpos($_REQUEST['image'], ',') + 1);
        
$data base64_decode($data);
    } else {
        
$data $_REQUEST['image'];
    }

    
/* Send download header */
    
PMA_download_header($filename$_REQUEST['type'], strlen($data));

    
/* Send data */
    
echo $data;

/* For monitor chart config export */
} else if (isset($_REQUEST['monitorconfig'])) {
    
PMA_download_header('monitor.cfg''application/force-download');
    echo 
urldecode($_REQUEST['monitorconfig']);

/* For monitor chart config import */
} else if (isset($_REQUEST['import'])) {
    
header('Content-type: text/plain');
    if(!
file_exists($_FILES['file']['tmp_name'])) exit();
    echo 
file_get_contents($_FILES['file']['tmp_name']);
}
?>

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