Strings Attached hardcoded password, found by strings

rev
flag L3m0n{a659f74d32b844aa086c18b1ecc30a71}

A 50-point ticket-booth program. It asks for a secret password and never prints it back - but a password written into the source as a literal string gets compiled straight into .rodata as plain text, which makes the very first tool anyone reaches for on an unknown binary also the only tool this challenge needs.

bash
1strings -a strings_attached | grep L3m0n
output
L3m0n{a659f74d32b844aa086c18b1ecc30a71}

That single line is both the password and the flag. Typing it into the running program prints "The curtains open!"

Note

The Windows build (strings_attached.exe) ships the identical literal, so either binary gives the same answer - the language and platform never mattered, only where the compiler put the string. Good reminder for real code too: a hardcoded secret in a binary is one strings call away from anyone who downloads it.