This code was downloaded from the website of MIT subject 6.893 (Computer Security) dictated at the fall of 2009.
In particular, the first lab work (Buffer Overflow), located here:

 http://pdos.csail.mit.edu/6.893/2009/labs/lab1/lab1.html

The license of the code (as well as the other material) seems to be CC BY 3.0 US. 
