Skip to content

Commit

Permalink
🖨️ print ticket invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
cairoeth committed Mar 16, 2024
1 parent a0e045c commit a6f22a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions paradigmctf.py/ctf_launchers/team_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ def __init__(self, challenge_id):
def get_team(self):
ticket = self.__check_ticket(input("ticket? "))
if not ticket:
print("invalid ticket!")
return None

if ticket.challenge_id != self.__challenge_id:
print("invalid ticket!")
return None

return ticket.team_id
Expand Down

0 comments on commit a6f22a5

Please sign in to comment.