Dude should have just added comments indicating that the code was part of some security test but was unfinished and extremely dangerous.
Change a few file names, add a comment how it will never run under normal circumstances, and you've got plausible deniability.