Challenge

Data remnants from the Gibson supercomputer, served in the CIPHER-Wiki series (ctf313.com/cipher-wiki) at section13/gibson.html: the Cookie Monster terminal from the film Hackers, entirely client-side.

Approach

The obvious victory message shows FLAG IS bmljZSB0cnkuIHRoaXMgaXMgbm90IHRoZSBmbGFnLg==, which is base64 for “nice try. this is not the flag.” The input is compared against sha256(“cookie”), and the real flag is assembled from a padding array of base64-encoded character codes:

1
''.join(chr(int(base64.b64decode(x))) for x in padding)

Flag

C00K13_M0N5T3R_15_N0_M0R3