Capture the Flag (CTF) is a computer security competition that are designed to give participants experience in conducting and reacting to the sort of attacks found in the real world requiring the skills in reverse-engineering, exploitation, protocol analysis, programming, and cryptanalysis. In this talk we will discuss various types of CTF games, and walk through interesting challenges our team, Pasten had the opportunity to tackle on the path to winning both CCC and Google CTF games.