Welcome to Cosy Casino. Try your luck to win a bunch of 💎 and become a millionaire! Be careful not to be addicted though.. Rules: No smoking, no guns and no pets are allowed inside the Casino, especially canaries..

General Hints

  • pwntools lib is your friend
  • copy-pasted code tends to be vulnerable if pasted incorrectly ;)
  • check where stack variables of threat functions are located
  • remember that you can always patch the local binary to make your life easier
  • sometimes the only way to bypass the canary is to forge own canary


This task is still live, so the writeup is available only in encrypted form.

Use flag from challenge to read the writeup, public version of writeup will be released after this task will be retired.