How to Make a Fake Virus on a Windows Pc

9,598

9

9

Posted in PlayPranks-and-humor

Introduction: How to Make a Fake Virus on a Windows Pc

About: I love to build model weapons and anything out of wood. I also love electronics.

Hi guys! today i have an april fools prank. its not a real virus and will not do any harm to your computer. it is just a shortcut.

Step 1: Notepad

to start open notepad and copy the text i have on it. then press file, save as, and save it

Step 2: How to Open the Fake Virus

press start, search "virus" ( mine was under virus yours might not be.) find the file and open it. your done. thank you and please vote for me under contest, april fools pranks.

Share

    Recommendations

    • Science of Cooking

      Science of Cooking
    • Pocket-Sized Contest

      Pocket-Sized Contest
    • Spotless Contest

      Spotless Contest
    user

    We have a be nice policy.
    Please be positive and constructive.

    Tips

    Questions

    9 Comments

    What you've written is called a batch file and batch files are as old as as the earliest releases of DOS some 35 years ago.

    Batch files are to DOS and Windows what shells are to Unix and Linux. While not as powerful as the latter, they are nonetheless a very useful tool.

    Regarding your "virus" batch file:

    You can get the same result using only the first 4 lines of the file. As soon as it reaches "goto hack" statement it will return to line 2 and continue looping. The rest of the file is unnecessary.

    If you want to slow it down, as signaltcl asks, give the processor some busy work before looping back to the ":hack" label.

    Here's a modification of your idea that runs a bit slower and has a few suggestions embedded.

    - - - - - - - - - - - - - - - - - - - - - - - - -

    @echo off

    :hack

    echo downloading virus

    echo overwriting drive data

    :rnd1

    set one=%random%

    if %one% gtr 100 goto rnd1

    :rnd2

    set two=%random%

    if %two% gtr 100 goto rnd2

    :rnd3

    set three=%random%

    if %three% gtr 100 goto rnd3

    goto hack

    Notes:

    1, Having more than one echo command will cause some screen activity,

    otherwise, after the screen is filled once, it will appear static

    2. The command "@echo off" need appear only once, at the beginning of the file.

    3. If you want to slow it down, give the processor some busy work. In this case, I have it generating random numbers and repeating the process until it generates a value of 100 or less. To slow down further, add more randomizing operations OR decrease the maximum value of each random number. I borrowed this technique but I can't remember the source.

    how to make it read slowly?

    Can you copy and paste the code into the instructable? Thanks!

    wouldn't:
    @echo off
    :hack
    echo downloading virus
    echo downloading virus
    echo downloaded virus
    goto hack
    be easier?

    1 reply

    It would. Not saying that the original is bad.

    doesnt work for me

    OMG!......i did this to my parents last night....my dad just wiped out the computer two days ago because of a horable virus in our computer so we lost every thing games,pictures.ect. so i read this yesterday and did it last night and this morning my mom and dad fliped out .......well it dident end well,they thought i downloaded a virus because i was the last one on the computer.....but after a while i was finally able to explain what i did... LOL

    1 reply

    i did this after he wiped out the computer just to freak him out.

    I'm doing this to my sister's computer. She will flip out :D