403Webshell
Server IP : 172.67.201.108  /  Your IP : 216.73.216.114
Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5
System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/mitzvahm/public_html/wp-content/plugins/proxi_vendors/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/mitzvahm/public_html/wp-content/plugins/proxi_vendors/image.php
<?php
//$siteurl = get_option('siteurl');
//var_dump($_SERVER);
$filename = "files/".$_GET['filename'];
// Get new sizes
list($width, $height) = getimagesize($filename);
$newwidth = $_GET['width'];
$percent = $newwidth / $width;
$newheight = $height * $percent;

// Load
$thumb = imagecreatetruecolor($newwidth, $newheight);

$ext = substr($_GET['filename'],-3);
$ext4 = substr($_GET['filename'],-4);

if(strtolower($ext)=="jpg" || strtolower($ext4)=="jpeg"){
	header('Content-type:image/jpeg');
	$source = @imagecreatefromjpeg($filename);
	// Resize
	imagecopyresampled($thumb, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, $height);
	imagejpeg($thumb);
}
if(strtolower($ext)=="gif"){
	header('Content-type:image/gif');
	$source = @imagecreatefromgif($filename);
	// Resize
	imagecopyresampled($thumb, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, $height);
	imagegif($thumb);
}
if(strtolower($ext)=="png"){
	header('Content-type:image/png');
	$source = @imagecreatefrompng($filename);
	// Resize
	imagecopyresampled($thumb, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, $height);
	imagepng($thumb);
}
if(strtolower($ext)=="bmp"){
	header('Content-type:image/wbmp');
	$source = @imagecreatefromwbmp($filename);
	// Resize
	imagecopyresampled($thumb, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, $height);
	imagewbmp($thumb);
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit