Skip to content

Instantly share code, notes, and snippets.

@cianb96
Last active December 10, 2015 11:39
Show Gist options
  • Save cianb96/4429154 to your computer and use it in GitHub Desktop.
Save cianb96/4429154 to your computer and use it in GitHub Desktop.
batch mischief

BOMBS

Batch bombs are evil! They overload the computer with commands, which causes it to freeze and shutdown.

View my old how-to video

There are different types of batch bombs. A few examples:

  1. Simple
  2. Goto Loops
  3. For Loops

1 - Simple

  • Less thought, time and effort
  • More lines and space

This way consists of copy pasting the same line(s) over and over again as many times as you want.

2 - Easy Loop

Example:

@echo off

:loop

start

goto loop

This will start cmd over and over again until the computer freezes.

3 - Complex Loop

Example:

@echo off

for /l %%X in (1,1,10) do (

start

)

The for command can be extremely useful! The "/l" allows you to set the amount of times you want to repeat your command. The "%%X" is just to set the variable X (not important but required).

The 3 n°s in the brackets are what counts: the 1st sets the n° to start with; the 2nd sets the steps (so how many n°s you increase by each time); and the 3rd sets which n° to stop at.

So the command "start" (between the brackets - which could be any command(s) you want) will be repeated 10 times.


More Fun Coming Soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment