Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zardus committed Jan 28, 2025
1 parent 2aeeb0d commit 7e40681
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pwnshop/templates/base/selenium.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down

0 comments on commit 7e40681

Please sign in to comment.