Dre4m Shell
Server IP : 103.6.199.200  /  Your IP : 3.145.103.169
Web Server : Microsoft-IIS/10.0
System : Windows NT EMPUSA 10.0 build 20348 (Windows Server 2016) i586
User : EMPUSA$ ( 0)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Domains/maytechc/maytechcr.com/wwwroot.original/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/Domains/maytechc/maytechcr.com/wwwroot.original/feedback.php
<?php
// ------------- CONFIGURABLE SECTION ------------------------



$randomNum=rand(0,99999);

move_uploaded_file($_FILES["fileToUpload"]["tmp_name"],
  "upload/".$randomNum . $_FILES["fileToUpload"]["name"]);

  if ($_FILES["fileToUpload"]["error"] > 0)
    {
    //echo "Apologies, an error has occurred.";
    //echo "Error Code: " . $_FILES["fileToUpload"]["error"];
    }
 else
    {

    move_uploaded_file($_FILES["fileToUpload"]["tmp_name"],
	  "upload/" . $_FILES["fileToUpload"]["name"]);
	}

if (($_FILES["fileToUpload"]["type"] == "image/gif")
  || ($_FILES["fileToUpload"]["type"] == "image/jpeg")
  || ($_FILES["fileToUpload"]["type"] == "image/png" )
  || ($_FILES["fileToUpload"]["type"] == "application/x-zip-compressed" )
  || ($_FILES["fileToUpload"]["type"] == "application/pdf" )
  && ($_FILES["fileToUpload"]["size"] < 50000))
  {
  move_uploaded_file($_FILES["fileToUpload"]["tmp_name"],
    "C:/upload/" . $_FILES["fileToUpload"]["name"]);
  }
else
  {
  //echo "Files must be either PDF, JPEG, GIF, or PNG and less than 50,000 kb";
  }
// ------------- CONFIGURABLE SECTION ------------------------










//$formurl = "http://dbsystem.com.my/contact-us.php" ;
//$errorurl = "error.php" ;
//$thankyouurl = "tq.php" ;

// -------------------- END OF CONFIGURABLE SECTION ---------------


$checking = $_POST['check'] ;
$name = $_POST['name'] ;
//$company = $_POST['company'] ;
$email = $_POST['email'] ;
$contact = $_POST['contact'] ;
$subject = $_POST['subject'] ;
$interest = $_POST['interest'] ;
$requests = $_POST['requests'] ;


if($_FILES["fileToUpload"]["name"]!=""){
$fileURL="<a href='"."http://www.henzstudio.com/sample/apex/upload/".$randomNum . $_FILES["fileToUpload"]["name"]."' target='_blank'>"."http://www.henzstudio.com/sample/apex/upload/".$randomNum . $_FILES["fileToUpload"]["name"]."</a>";
}else{
	$fileURL="no attachment";
}

$http_referrer = getenv( "HTTP_REFERER" );

if (!isset($_POST['email'])) {
	//header( "Location: $formurl" );
	//exit ;
}
if (empty($name) || empty($email)) {
   //header( "Location: $errorurl" );
   //exit ;
}
$name = strtok( $name, "\r\n" );
$email = strtok( $email, "\r\n" );

$messageproper =

	"This message was sent from:<br>" .
	"$http_referrer<br><br>" .
	"---------------------- ENQUIRY DETAILS ----------------------<br><br>" .
	"Name: $name<br>" .
	"Email: $email<br>" .
	"Contact: $contact<br>" .
	"Subject: $subject<br>" .
	"Area of Interest: $interest<br>" .
	"Contact: $contact" .

	"<br><br>---------------------- ENQUIRY DETAILS ----------------------<br><br>" .
	$requests .	
	"<br><br>---------------------------------------------------------------------<br> Presented by Maytech. <br>---------------------------------------------------------------------<br>" ;
/*
if($checking == "fromform"){
	$mail->AddReplyTo($email);
	$mail->IsHTML(true); 
	$mail->Subject = "Career from Jerasia Website";
	$mail->Body = $messageproper;
	$mail->AltBody = $messageproper;
	
	if(!$mail->Send())
	{
		header( "Location:error.php" );
		exit;
	}
	
	header( "Location:career_tq.php" );

}
*/
$mailto = 'hengdownload@yahoo.com' ;
$mailto2 = 'farahhanis@maytechcr.com' ;
$mailto3 = 'chesterchiacc@maytechcr.com' ;
$mailto4 = 'lhlee@henzstudio.com' ;
//$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers = "Content-Type: text/html";
$subject = "Enquiry from Maytech Website" ;
if($checking == "fromform"){
	mail($mailto, $subject, $messageproper, $headers);
	mail($mailto2, $subject, $messageproper, $headers);
	mail($mailto3, $subject, $messageproper, $headers);
	mail($mailto4, $subject, $messageproper, $headers);
	header( "Location:tq.php" );
}
?>


Anon7 - 2022
AnonSec Team