Skip to content

Commit 22aa63a

Browse files
committed
fix fake flag detection in exploit_embed
1 parent ed16cd9 commit 22aa63a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

checker/src/checker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -572,9 +572,9 @@ async def exploit_embed(
572572
flag += closest_char
573573

574574
if flag:
575-
unformatted_flag = await unformat_flag(flag)
576-
if unformatted_flag.endswith("FAKE"):
575+
if flag.endswith("FAKE"):
577576
continue
577+
unformatted_flag = await unformat_flag(flag)
578578
logger.debug(f"Flag found. Original: {flag} Unformatted: {unformatted_flag}")
579579
return unformatted_flag
580580

0 commit comments

Comments
 (0)