From edb477fb8468401b6cd81cc34bf3cfc62bb3686b Mon Sep 17 00:00:00 2001 From: lverherb Date: Wed, 21 Feb 2024 17:48:31 +0100 Subject: [PATCH] Added ZeusCTF flags --- web/app.py | 2 +- web/templates/index.html | 4 ++-- web/web.db | Bin 8192 -> 8192 bytes 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/app.py b/web/app.py index 8269377..ef85239 100644 --- a/web/app.py +++ b/web/app.py @@ -15,7 +15,7 @@ def root(): db = get_db() user_cookie = request.cookies.get("userid") if user_cookie is None: - user_cookie = str(random.randint(100000, 999999)) + user_cookie = str(random.randint(100_000, 999_999)) print(f"Userid was None, nieuw UID: {user_cookie}") if request.method == "POST": diff --git a/web/templates/index.html b/web/templates/index.html index e902aa7..ebe7ee1 100644 --- a/web/templates/index.html +++ b/web/templates/index.html @@ -5,13 +5,13 @@ - Posts + Posts
- +
{% for post in posts %} diff --git a/web/web.db b/web/web.db index 9159e5e4e1f84e5278d586c0b4228c97d80ed846..0d83968808234e52976cfacf23b4aca20f5cb2fb 100644 GIT binary patch delta 124 zcmZp0XmFSy&B!}Z#+i|KW5N=CE@u9f4E!(nkMghFtSC^&Ke0hJT#A{Q*_2^PXjE!x zv2%!9wVz?KalE5Nq^XNrts)aMhbK(J*}x#%&^X@LAg{Q@xG3J$&BEWqvQ~_dnZr0Y VKSQBBu|y%WSRn;SWn`un0RXscBwGLg delta 137 zcmZp0XmFSy&B!@X#+i|GW5N=C0XF{m4E&$?pYz}0-_5_4fBt4cfo}dp9yVrXNw&EL ziAl*RscAf{5MEYlZenhtJPR|UbBaxIa#3bMiCtn&YEg-Xx}mzJjXqR}lbM-Wn6Yg^ YR$?9}6P(Gz2sDJTouxc6Ej6bY0BM0GssI20