403Webshell
Server IP : 65.1.209.187  /  Your IP : 216.73.216.144
Web Server : nginx/1.24.0
System : Linux ip-172-31-5-206 6.14.0-1015-aws #15~24.04.1-Ubuntu SMP Tue Sep 23 22:44:48 UTC 2025 x86_64
User :  ( 1001)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/drjunior_wordpress/wp-content/themes/drjunior/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/drjunior_wordpress/wp-content/themes/drjunior/recaptcha-contactus.php
<?php
ob_start();
extract($_GET);
extract($_POST);
$email_from="mailer@drjunior.in";
$common_mail="support@drjunior.in";
define("RECAPTCHA_V3_SECRET_KEY", '6LcHEKwqAAAAAGTIBEewYOvJznYBFz35kv2RMUYJ');

$token = $_POST['token'];
$action = $_POST['action'];

// call curl to POST request
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"https://www.google.com/recaptcha/api/siteverify");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(array('secret' => RECAPTCHA_V3_SECRET_KEY, 'response' => $token)));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
$arrResponse = json_decode($response, true);
// verify the response
if($arrResponse["success"] == '1' && $arrResponse["action"] == $action && $arrResponse["score"] >= 0.5) {
	//valid submission
	//go ahead and do necessary stuff
	//email starts here
	$subject = "Enquiry from $name - Dr. Junior";
	$mailto = $common_mail;
	// To send HTML mail, the Content-type header must be set
	$headers[] = 'MIME-Version: 1.0';
	$headers[] = 'Content-type: text/html; charset=iso-8859-1';

	// Additional headers
	$headers[] = 'From: '.$name.'<'.$email_from.'>';
	$headers[] = 'Reply-To: '.$name.'<'.$email.'>';
	//$headers[] = "Bcc: $bcc_mail";
	$message='<table style="width:60%;padding:1%; height:auto; margin:0 auto;background:#00778F;">
	<tr>
		<td colspan="2" style="width:50%;height:63px; line-height:63px; text-align:center; font-family:Arial, Helvetica,sans-serif; font-size:18px; font-weight:bold; color:#fff;text-transform:uppercase">Enquiry&nbsp;-&nbsp;Dr. Junior</td>
	</tr>
	<tr>
		<td style="background-color:#fff;width:50%;height:63px; line-height:63px; text-align:center; font-family:Arial, Helvetica,sans-serif; font-size:14px; font-weight:bold; color:#474747">Name:</td>
		<td style="background-color:#fff;width:50%;height:63px; line-height:63px; text-align:center; font-family:Arial, Helvetica,sans-serif; font-size:14px; font-weight:bold; color:#474747">'.$name.'</td>
	</tr>
	<tr>
		<td style="background-color:#fff;width:50%;height:63px; line-height:63px; text-align:center; font-family:Arial, Helvetica,sans-serif; font-size:14px; font-weight:bold; color:#474747">Email:</td>
		<td style="background-color:#fff;width:50%;height:63px; line-height:63px; text-align:center; font-family:Arial, Helvetica,sans-serif; font-size:14px; font-weight:bold; color:#474747">'.$email.'</td>
	</tr>
	<tr>
		<td style="background-color:#fff;width:50%;height:63px; line-height:63px; text-align:center; font-family:Arial, Helvetica,sans-serif; font-size:14px; font-weight:bold; color:#474747">Phone:</td>
		<td style="background-color:#fff;width:50%;height:63px; line-height:63px; text-align:center; font-family:Arial, Helvetica,sans-serif; font-size:14px; font-weight:bold; color:#474747">'.$phone.'</td>
	</tr>
	<tr>
		<td style="background-color:#fff;width:50%;height:63px; line-height:63px; text-align:center; font-family:Arial, Helvetica,sans-serif; font-size:14px; font-weight:bold; color:#474747">Location:</td>
		<td style="background-color:#fff;width:50%;height:63px; line-height:63px; text-align:center; font-family:Arial, Helvetica,sans-serif; font-size:14px; font-weight:bold; color:#474747">'.$location.'</td>
	</tr>
	<tr>
		<td style="background-color:#fff;width:50%;height:63px;text-align:center; font-family:Arial, Helvetica,sans-serif; font-size:14px; font-weight:bold; color:#474747">Comment:</td>
		<td style="background-color:#fff;width:50%;height:63px; text-align:center; font-family:Arial, Helvetica,sans-serif; font-size:14px; font-weight:bold; color:#474747">'.$comment.'</td>
	</tr>
	</table>';
	mail($mailto, $subject,stripslashes($message), implode("\r\n", $headers));
	header("location:contacts.php?response=1#enquiry");
} else {
	// spam submission
	// show error message
	header("location:contacts.php?response=0#enquiry");
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit