Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add scripts and update README #11

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions Password_Generator/Password_Generator.ino
Original file line number Diff line number Diff line change
@@ -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
}
18 changes: 18 additions & 0 deletions Pinger/Pinger.ino
Original file line number Diff line number Diff line change
@@ -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);
}
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
72 changes: 72 additions & 0 deletions Wallpaper_Prank_Update/Wallpaper_Prank_Update.ino
Original file line number Diff line number Diff line change
@@ -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);
}
18 changes: 18 additions & 0 deletions WiFi_Info_Display/WiFi_Info_Display.ino
Original file line number Diff line number Diff line change
@@ -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);
}