RSS
Loading...

Batch File Virus Making

Over the weekend, I've been sending my friends some .exe files as pranks that shut down your computer. It displays "Brian Virus Activated", spits out a bunch of random numbers, and then forces a computer shut down.

How does it work? The .exe is really a .bat file in disguise. A .bat file is known as a batch file, which is like writing a really simple program in command prompt. If you've ever coded before, batch files are extremely easy to make. All they do is run the commands top to bottom. The .bat file is then converted to an .exe, which I'll talk about later. It is completely harmless, but you can make it really powerful and do things like format the drive. I won't teach you that, because that's just cruel.

NOTE: FOR EDUCATIONAL PURPOSE ONLY..PLEASE DON'T USE THEM FOR ILLEGAL PURPOSE..WE ARE NOT RESPONSIBLE FOR ANY CONSEQUENCES..
BE CAREFUL



Unfortunately, this is windows only and it requires administrative privileges.
Essentially, to create a batch virus, you'll just need two tools. Notepad and a bat to exe converter, which you can find here.

So open up notepad and type:

@echo off
color 1a
shutdown /s /c "yourmessagehere"

"@echo off" prevents the text from showing. The person who opens the .exe won't see text being displayed.
"color 1a" changes the command prompt color into a bluish color that makes it look a bit virus like.
"Shutdown /s /c" shutdowns the computer. /s means shutdown, and /c means comment. Replace yourmessagehere with anything you'd like, just DO NOT REMOVE THE " or it won't work.

Save it as a .bat by going to file>save as>yourvirus.bat (or whatever, just remember to change the .txt extension to .bat). Then, run it through the converter and you should have a nice .exe file. You can test it, and you should get a window that says whatever you put your message as. THERE IS AN ESCAPE HATCH, because by default, the shutdown /s command gives you 30 seconds. To "escape", open a new command prompt window and type "shutdown /a". This should cancel your shutdown.

You can proceed to send the .exe to friends and watch them gasp in horror as their computer shuts down.

That's all for now!


WANNA MORE SEE OUR FORUMS FOR MORE BATCH VIRUS CODES..




0 Responses to "Batch File Virus Making"

Post a Comment

 
Copyright © 2010 | Flash News Converted into Blogger Template by HackTutors