Make an Easy E Bomb Using Notepad

An E-bomb is a simple type of computer prank that tricks a friend (or enemy) into thinking his or her computer is being hacked, is infected with a virus, or is experiencing a serious error. The process of executing an E-bomb involves writing a special kind of file using notepad which contains commands that slow down the computer, crash the system, or merely startle the user, then tricking the user into opening the file. E-bombs can be anything from a minor annoyance to a system-destroying nightmare for the user; the E-bombs in this article are intended merely as innocuous pranks, so the worst they'll do is cause a computer to crash.

Note: These E-bombs are for Windows PCs - they will not work on Macs without special adjustments for compatibility. See Step 1 below to get started.

Steps

Writing a Fake "Virus" to Open Infinite Windows

  1. Open Notepad. Batch (.BAT) files contain text commands that instruct the computer what to do. To write your own simple .BAT file, you don't need special editing software - just Windows' basic Notepad program. Notepad can usually be found in the Start menu, or, alternatively, in the "Accessories" folder.
  2. Type "@echo off", then, on a new line, "CLS". By default, .BAT files open up a command prompt window and display the commands being run. @echo off and CLS stop the commands in the command prompt window from appearing, making the processes that are taking place invisible to the user being pranked.
  3. Write a command to open multiple (or infinite) windows. Now, it's time to write a series of commands that will cause your fake virus to open either lots of program windows or an infinite amount of program windows. This is an important distinction - leaving a program running which opens an infinite amount of windows will eventually crash a computer. See below for instructions on making both kinds of "virus":
    • To open a finite number of windows, start a new line and type the following command into your notepad window: start (program name here). In place of the phrase of parentheses, put the name of a program on your computer or its precise file location. This command causes the computer to open a window of the program you specify. For example, start iexplore.exe will open a window of Internet Explorer. Repeat this "start" command as many times as you'd like - your "virus" will open a window for every time you repeat this command. Here are just a few ideas for programs you may want to enter after "start":
      • iexplore.exe - Internet
      • calc.exe - Calculator
      • notepad.exe - Notepad
      • winword.exe - Word 2013
    • To open an infinite number of windows, first start a new line and type :A, including the colon. Then, in the line under that, type start iexplore.exe (or use some other program). Finally, in the line under that, type goto A. This will cause the computer to open a window of Internet Explorer (or whatever program you specified) and then immediately return to the point in the instructions before it opened the program, effectively causing it to open new windows until the command prompt is closed or the computer crashes.
  4. Give your "virus" a message. For startling effect, you may want to add a message to your "virus" that makes the user think his or her computer is experiencing an error. To display a message, start a new line and type echo Your Message Here, typing your desired message where indicated. Then, start a new line and type pause. This causes your desired message to pop up in a command prompt window.
    • To make your prank more believable, use a message that sounds like something your computer might actually display in the event of an error. For instance, you might try: Fatal Error. C:// directory corrupted.
  5. Save your file as a batch file. When you're finished, select File > Save As..., then make a file name ending in ".bat" (for example, pinball.bat). In the dropdown window next to "Save as type:", be sure to select "All files". Save your file anywhere on the computer.
  6. Get the user to open the file. Now, all you've got to do to "detonate" your E-bomb is to trick someone into opening it! You can do this any way you like. One of the most sure-fire ways to trick someone into opening one is to create a shortcut of your batch file, then change its icon to something the user usually uses, then change the shortcut's name to match the new icon. Sit back and watch your results from a good vantage point!

Writing a .VBS to Give an Error or Hacking Message

  1. Open Notepad. Like the trick above, this requires you to write a few simple commands in Notepad. However, its effect is different - instead of opening a series of program windows, this trick creates a series of error messages which allow you to fool the user into thinking his or her computer is experiencing an error or being hacked.
  2. Type "x=msgbox("Error message here", 5+16, "Error title here"). Type this command (including the parentheses and and quotation marks), adding an appropriate error message and error title. This command opens a Windows error dialog box with your specified message in the body of the dialog and your specified title as the dialogue's header. To make your prank believable, try to use error messages and titles that sound like real ones. For instance, try "Terminal Error" as your error title and "Critical fault detected at C://Users/Windows/system32" as your error message.
    • You might also want to go in a "hacking" direction by using a message like, "I have total access to your system. Prepare to be hacked." This never actually happens in the event of actual hacking, so this will work best on people who don't know much about computers.
    • The "5+16" in the command above tells the computer to create a dialog box with a critical icon and two buttons - "Retry" and "Cancel." By changing the numbers, you can custom-create different error boxes. Simply swap out any of the single-digit numbers below for 5 and any of the double digit numbers below for 16:
      • 0 (OK Button)
      • 1 (OK and Cancel Buttons)
      • 2 (Abort, Retry and Ignore Buttons)
      • 3 (Yes, No, and Cancel Buttons)
      • 4 (Yes and No Buttons)
      • 5 (Retry and Cancel Buttons)
      • 16 (Critical Icon)
      • 32 (Help Icon)
      • 48 (Warning Icon)
      • 64 (Information Icon)
  3. Repeat as many error message commands as you'd like. Repeat the above command as many times as you'd like with as many different error messages as you'd like. The messages will appear in sequence - in other words, once a user exits one, the next will appear. You can easily take advantage of this fact to create a long string of error messages that seem to grow in urgency!
  4. Save as a Visual Basic (VBA) file. When you've entered all the error messages you would like, save your file. Select File > Save As..., then give your file a name ending in ".vba". Be sure to select "All files" from the "Save as type:" dropdown menu. Now, all you've got to do is trick someone into opening your E-bomb - the exact same tricks as in Method 1 will work just as well here.

Using a Pre-written Batch File

  1. Open Notepad. This E-bomb uses Notepad commands to cause the computer to randomly open programs until the batch file is disabled or the computer crashes. To make this E-bomb, you just need to copy and paste the pre-written commands in this section. However, note that this may not work on all computers.
  2. Copy and paste the following commands:

    @echo off
    cls
    begin
    goto %random%
    :1
    start cmd.exe
    goto begin
    :2
    start mspaint.exe
    goto begin
    :3
    start pinball.exe
    goto begin
    :4
    start iexplore.exe
    goto begin
    :5
    start explorer.exe
    goto begin
    :6
    start solitaire.exe
    goto begin
    :7
    start explorer.exe
    goto begin
    :8
    start edit.exe
    goto begin
    :9
    start iexplore.exe
    goto begin
    :0
    start mspaint.exe
    goto begin
  3. Modify as you see fit. This program randomly opens the programs listed after each "start" indefinitely. You may notice some of these programs have been repeated. Feel free to change the programs listed to whichever ones you would like.
    • Note that some of the program names listed above may not be accurate for your specific machine - for instance, some computers won't contain "pinball.exe" You may want to double-check to see if each program exists before executing your E-bomb.
    • If in doubt about the name of a specific program, remember that its precise file pathway is also valid. For instance, "iexplore.exe" can also be written as "C:\Program Files\Internet Explorer".
  4. Save as a batch file, then run the file (if you dare). Save the file using the ".bat" extension (being sure to select "All files" from the "Save as type:" menu) When you trick the user into opening it, it will begin opening seemingly randomly programs on the computer without stopping.
    • For a bit of fun, try replacing one of the 'start *.exe' commands with the path of a notepad file on the person's computer or something like that. Use the following command:
      edit (path to file)
      goto begin
      This will open their file in a DOS-based text editor, making it look like a hacker is reading their personal documents. Try it!
  5. Learn the meaning of commands to be able to modify your E-bomb. Even if you don't understand how they work, E-bombs can be great pranks, but you'll be able to get even more enjoyment out of them if you know exactly what's happening when one is run. As an added bonus, once you understand how E-bombs work, you can start writing your own! Here is a list of the commands we used in this article, along with a brief description of each:
    • @echo off - Turns command prompt comments off
    • cls - Clears the command prompt screen. This just makes the command prompt appear neater.
    • goto - Go to whatever flag you specify immediately after "goto".
    •  %random% - A windows variable that randomly generates a number between (and including) 0-9.
    •  :(number, letter, or word) - A flag. "Goto" commands send the program to whatever flag they specify.
    • Note: in our example above, we have 10 flags. If we leave a number out, the program should close when %random% generates that number.

Tips

  • Here's an example of one of the most simple but annoying programs and it's code:

    </br>@echo off</br>:a</br>start notepad</br>goto a

    All this does is opens Notepad an infinite number of times until you close the command prompt. Don't open it on a computer and walk away for about half an hour, it will screw it up badly.

    The alternative method above is, essentially, the same sort of thing just more complex.

  • Experiment with different codes! If you wanted to make this harmful you could put code that deletes files and delete someone’s entire hard drive.

Warnings

  • You could get in trouble for sending a harmful batch file or for tampering with school or public computers. Sending this over the Internet to someone who does not want it or loading it onto a public system is illegal.
  • Don't overdo it. 10 instances of something like Pinball is annoying. Hundreds could crash a computer and cause someone to lose work.

Things You'll Need

  • Computer running Windows
  • Notepad

Related Articles

Sources and Citations