Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
zardus committed Nov 13, 2024
1 parent 4a754d0 commit ee6f425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pwnshop/challenge.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def run_challenge(
if self._verify_container:
ret, _ = self._verify_container.exec_run(f"""/bin/bash -c 'echo -n "{self.flag.decode()}" | tee /flag'""", user="root")
assert ret == 0
_, out = self._verify_container.exec_run(f"cat /flag", user="root")
_, out = self._verify_container.exec_run("cat /flag", user="root")
assert out == self.flag
else:
with open("/flag", "rb") as f:
Expand Down

0 comments on commit ee6f425

Please sign in to comment.