I love it when cool teachers sneak projects like these into their classwork. I had a computer architecture class that had labs to write exploits in MIPS assembly. I'd say 19 out of 20 people didn't even know they were exploits while we were writing them. :>
slight precision, it wasn't a school project, just me and a buddy that wanted to use computers and mess with a paranoid teacher with a harmless scary message.