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/news/cooprat/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Inetpub/www/news/cooprat//gallery_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>
<?
include("db.php");  
$id = $mysqli->escape_string($_GET['id']);
$date_news = date("Ymd-H-i-s");
	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("dmY-His_$id"). "_$s." .$lastname; 
		if($_FILES["filUpload"]["name"][$i] != "")
		{
		if(move_uploaded_file($file_tmp,"myphoto/".$filenew))
	ini_set('memory_limit','1000M');
	set_time_limit(200);	  
	$images = "myphoto/$filenew";
	$size=getimagesize($images);
	$img_w=$size[0];
	if ($img_w >690) {  //ตรวจสอบขนาดรูป ถ้ามากกว่า 690 ให้ทำการ resize
	$new_images = "myphoto/$filenew";
	$width=750; //*** Fix Width & Heigh (Autu caculate) ***//
	$size=GetimageSize($images);
	$height=round($width*$size[1]/$size[0]);
	$images_orig = ImageCreateFromJPEG($images);
	$photoX = ImagesX($images_orig);
	$photoY = ImagesY($images_orig);
	$images_fin = ImageCreateTrueColor($width, $height);
	ImageCopyResampled($images_fin, $images_orig, 0, 0, 0, 0, $width+1, $height+1, $photoX, $photoY);				
	ImageJPEG($images_fin,$new_images);
	ImageDestroy($images_orig);
	ImageDestroy($images_fin);
	} else {}			
		{
				//*** Insert Record ***//
$mysqli->query("INSERT INTO photo(id_news, photo_name) VALUES ('$id', '".$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