Month: March 2016

TUTORIAL: Playground Testing

This semester, I’ve introduced a test directory in Playground that parallels the main directory. It currently looks like this: /Playground/src/ /Playground/test/ /Playground/test/unittest/ /Playground/test/unittest/tools/ /Playground/test/unittest/cases/apps/samples/EchoTest.py The main part is the stuff under unittest/cases. It will eventually be a mirror of all the files under /Playground/src. Currently, I’ve only created a unit test for the EchoTest sample. But it’s a good template for how you test a protocol. For those of you…

Exploit Challenge: Take Over the Bank [10,000/5,000]

The Bank without the benefit of a secure layer is trivially exploitable. For example, with very little thinking, you should be able to completely control the bank by using eavesdropping+forgery. If anyone or any team at any point before the secure layer is in place can demo (on their own Playground Sandbox) how to do this, I will buy it as an exploit. To be clear, the exploit must show how, using…

TUTORIAL: Writing a Protocol

For this walkthrough, we’re going to create a “time server” (similar to NTP) called PlayTime. So we could create a time server repository and an install script that would put it under the joemamma directory. <homedir>/Playground/src/joemamma/playtime To be clear, the repository is just for the PlayTime code, but you could have it install in this sibling fashion format. Design the Protocol The next step is to figure out how the…