Skip to content

Commit

Permalink
strace fallback for compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
zardus committed Nov 3, 2024
1 parent ecdb4ad commit 7aadc35
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pwnshop/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,12 @@ def verify_challenge(challenge, debug=False, flag=None, strace=False):
with open("/flag", "wb") as f:
f.write(flag.encode())

challenge.verify(strace=strace)
try:
challenge.verify(strace=strace)
except TypeError as e:
if "strace" not in str(e):
raise
challenge.verify()

def verify_many(args, challenges):
failures = [ ]
Expand Down

0 comments on commit 7aadc35

Please sign in to comment.