From 55692b609297649ec73c78cd753e876aaa202897 Mon Sep 17 00:00:00 2001 From: Siddharth Mathur Date: Thu, 18 Oct 2018 14:53:51 -0500 Subject: [PATCH 1/5] Create WiFi_Info_Display.ino --- WiFi_Info_Display/WiFi_Info_Display.ino | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 WiFi_Info_Display/WiFi_Info_Display.ino diff --git a/WiFi_Info_Display/WiFi_Info_Display.ino b/WiFi_Info_Display/WiFi_Info_Display.ino new file mode 100644 index 0000000..79a9259 --- /dev/null +++ b/WiFi_Info_Display/WiFi_Info_Display.ino @@ -0,0 +1,18 @@ +#include "DigiKeyboard.h" + +void setup() { + // don't need to set anything up to use DigiKeyboard +} + +void loop() { + DigiKeyboard.sendKeyStroke(0); + DigiKeyboard.sendKeyStroke(0, MOD_GUI_LEFT); + DigiKeyboard.delay(500); + DigiKeyboard.println("cmd"); + DigiKeyboard.delay(1000); + DigiKeyboard.sendKeyStroke(KEY_ENTER); + DigiKeyboard.delay(500); + DigiKeyboard.println("ipconfig"); + DigiKeyboard.sendKeyStroke(KEY_ENTER); + DigiKeyboard.delay(5000); +} From ef59497219fef1bac4e39b89e4a839bfbda76ac0 Mon Sep 17 00:00:00 2001 From: Siddharth Mathur Date: Thu, 18 Oct 2018 14:55:53 -0500 Subject: [PATCH 2/5] Create Pinger.ino --- Pinger/Pinger.ino | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Pinger/Pinger.ino diff --git a/Pinger/Pinger.ino b/Pinger/Pinger.ino new file mode 100644 index 0000000..5dbda65 --- /dev/null +++ b/Pinger/Pinger.ino @@ -0,0 +1,18 @@ +#include "DigiKeyboard.h" + +void setup() { + // don't need to set anything up to use DigiKeyboard +} + +void loop() { + DigiKeyboard.sendKeyStroke(0); + DigiKeyboard.sendKeyStroke(0, MOD_GUI_LEFT); + DigiKeyboard.delay(500); + DigiKeyboard.println("terminal"); + DigiKeyboard.delay(1000); + DigiKeyboard.sendKeyStroke(KEY_ENTER); + DigiKeyboard.delay(500); + DigiKeyboard.println("ping /t google.com"); + DigiKeyboard.sendKeyStroke(KEY_ENTER); + //DigiKeyboard.delay(5000); +} From a1f64c944e6718bb885e7dbb39c8e1650bc84e8e Mon Sep 17 00:00:00 2001 From: Siddharth Mathur Date: Thu, 18 Oct 2018 15:08:38 -0500 Subject: [PATCH 3/5] Create Password_Generator.ino --- Password_Generator/Password_Generator.ino | 30 +++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Password_Generator/Password_Generator.ino diff --git a/Password_Generator/Password_Generator.ino b/Password_Generator/Password_Generator.ino new file mode 100644 index 0000000..629a7de --- /dev/null +++ b/Password_Generator/Password_Generator.ino @@ -0,0 +1,30 @@ +//NOTE: This is meant to be used on Linux machines + +#include "DigiKeyboard.h" + +void setup() { + pinMode(0, OUTPUT); //LED on Model B + pinMode(1, OUTPUT); //LED on Model A + DigiKeyboard.sendKeyStroke(0); + DigiKeyboard.delay(500); + DigiKeyboard.sendKeyStroke(0, MOD_GUI_LEFT); + DigiKeyboard.delay(500); + DigiKeyboard.println("terminal"); + DigiKeyboard.delay(1250); + DigiKeyboard.println("cd Downloads"); + DigiKeyboard.delay(100); + DigiKeyboard.println("nano passwd.txt"); + DigiKeyboard.delay(100); +} + +void loop() { + digitalWrite(0, HIGH); // turn the LED on (HIGH is the voltage level) + digitalWrite(1, HIGH); + char passwd[12]; + for(int x=0; x<12; x++) passwd[x]=random(33, 127); + DigiKeyboard.println(String(passwd)); + DigiKeyboard.delay(50); + digitalWrite(0, LOW); // turn the LED off by making the voltage LOW + digitalWrite(1, LOW); + delay(50); // wait for a second +} From 68237c87653f30ae5af729808da9289acb1521df Mon Sep 17 00:00:00 2001 From: Siddharth Mathur Date: Thu, 18 Oct 2018 15:10:23 -0500 Subject: [PATCH 4/5] Create Wallpaper_Prank_Update.ino --- .../Wallpaper_Prank_Update.ino | 72 +++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 Wallpaper_Prank_Update/Wallpaper_Prank_Update.ino diff --git a/Wallpaper_Prank_Update/Wallpaper_Prank_Update.ino b/Wallpaper_Prank_Update/Wallpaper_Prank_Update.ino new file mode 100644 index 0000000..d84a6bb --- /dev/null +++ b/Wallpaper_Prank_Update/Wallpaper_Prank_Update.ino @@ -0,0 +1,72 @@ +#include "DigiKeyboard.h" + +int led = 0; // Change to pin 1 for MODEL A +int on_wait = 1000; // How long to toggle CAPS LOCK for. +int off_wait = 5000; // Delay between toggles. + +void setup() { + DigiKeyboard.sendKeyStroke(0); + DigiKeyboard.delay(500); + DigiKeyboard.sendKeyStroke(KEY_D, MOD_GUI_LEFT); + DigiKeyboard.delay(500); + DigiKeyboard.sendKeyStroke(70, MOD_ALT_LEFT); + DigiKeyboard.delay(500); + DigiKeyboard.sendKeyStroke(KEY_R, MOD_GUI_LEFT); + DigiKeyboard.delay(500); + DigiKeyboard.print("mspaint"); + DigiKeyboard.sendKeyStroke(KEY_ENTER); + DigiKeyboard.delay(800); + DigiKeyboard.sendKeyStroke(KEY_V, MOD_CONTROL_LEFT); + DigiKeyboard.delay(500); + DigiKeyboard.sendKeyStroke(KEY_S, MOD_CONTROL_LEFT); + DigiKeyboard.delay(600); + DigiKeyboard.print("%USERPROFILE%\\wall.jpg"); + DigiKeyboard.sendKeyStroke(KEY_ENTER); + DigiKeyboard.delay(600); + DigiKeyboard.sendKeyStroke(KEY_F, MOD_ALT_LEFT); + DigiKeyboard.delay(500); + DigiKeyboard.sendKeyStroke(KEY_K); + DigiKeyboard.delay(500); + DigiKeyboard.sendKeyStroke(KEY_F); + DigiKeyboard.delay(500); + DigiKeyboard.sendKeyStroke(KEY_F, MOD_ALT_LEFT); + DigiKeyboard.delay(500); + DigiKeyboard.sendKeyStroke(KEY_X); + DigiKeyboard.delay(600); + DigiKeyboard.sendKeyStroke(KEY_D, MOD_GUI_LEFT); + DigiKeyboard.delay(500); + DigiKeyboard.sendKeyStroke(KEY_F10, MOD_SHIFT_LEFT); + DigiKeyboard.delay(500); + DigiKeyboard.sendKeyStroke(KEY_V); + DigiKeyboard.delay(200); + DigiKeyboard.sendKeyStroke(81); + DigiKeyboard.delay(200); + DigiKeyboard.sendKeyStroke(81); + DigiKeyboard.delay(200); + DigiKeyboard.sendKeyStroke(81); + DigiKeyboard.delay(200); + DigiKeyboard.sendKeyStroke(81); + DigiKeyboard.delay(200); + DigiKeyboard.sendKeyStroke(81); + DigiKeyboard.sendKeyStroke(KEY_ENTER); + + DigiKeyboard.delay(5000); + DigiKeyboard.sendKeyStroke(KEY_R, MOD_GUI_LEFT); + DigiKeyboard.delay(3000); + DigiKeyboard.print("http://fakeupdate.net/win10u/index.html"); + DigiKeyboard.sendKeyStroke(KEY_ENTER); + DigiKeyboard.delay(2000); + DigiKeyboard.sendKeyStroke(KEY_F11); + + pinMode(led, OUTPUT); + DigiKeyboard.update(); +} + +void loop() { + DigiKeyboard.sendKeyStroke(57); + digitalWrite(led, 1); + delay(on_wait); + DigiKeyboard.sendKeyStroke(57); + digitalWrite(led, 0); + delay(off_wait); +} From 22cff3280c4cd2e667e97a8b62474e0a97958975 Mon Sep 17 00:00:00 2001 From: Siddharth Mathur Date: Thu, 18 Oct 2018 15:16:30 -0500 Subject: [PATCH 5/5] Update README.md --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 9774da1..eb4b910 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,14 @@ Configure the Arduino IDE for the DigiSpark using: https://digistump.com/wiki/di >Window_Jammer : Spams ALT + F4 and CTRL + W key combos to force close all active windows. +>Wallpaper_Prank_Update : Makes all the desktop icons unclickable and indefinitely gives the appearance that Windows is updating + +>Password_Generator : Uses Bash to create a list of randomly-generated passwords and save it in the user's Downloads folder + +>Pinger : Opens command prompt and pings to [google.com](google.com) + +>WiFi_Info_Display : Opens command prompt and displays network information using ipconfig + # See the scripts in action Click the gifs to see the full video