From 7e40681cb8e47f5b4f8ccb3bb1e41f03bcaed882 Mon Sep 17 00:00:00 2001 From: Yan Date: Mon, 27 Jan 2025 20:35:02 -0700 Subject: [PATCH] fix --- pwnshop/templates/base/selenium.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pwnshop/templates/base/selenium.py b/pwnshop/templates/base/selenium.py index 836705c..fe9646d 100755 --- a/pwnshop/templates/base/selenium.py +++ b/pwnshop/templates/base/selenium.py @@ -49,10 +49,11 @@ {% endif %} {% if challenge.flag_in_query %} +print(f"Visiting {challenge_url} (with the flag).") challenge_url += f"""?flag={open("/flag").read().strip()}""" -{% endif %} - +{% else %} print(f"Visiting {challenge_url}") +{% endif %} browser.get(challenge_url) {% if challenge.form_fields %}