Part of the fun at DEFCON is the badge hacking contest. This year I decided to take a hard look at the code behind the badge. One area of interest was the Ninja Party "Locked" screen, so I decided to see if I could figure out how to unlock it. I did. Here's the code I used. There was also an Excel spreadsheet involved that computed the tumbler values based on the dc18_encode_tumblers function in the file DC18_Badge.c.
Once you figure out the pin encoding (I can’t make this too easy), this code will let you validate the integer result.