Last active
November 24, 2022 20:28
-
-
Save Python1320/1504d184ca0b634bc167092ebdb9df06 to your computer and use it in GitHub Desktop.
https://angreifer.org in the USB port
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 15€ hardware: https://www.aliexpress.com/item/1005003672079080.html | |
// 5€ hardware: https://www.aliexpress.com/item/2040316211.html (needs rewriting with DigiKeyboard.h) | |
#include<Keyboard.h> | |
#define KEY_DELAY 50 | |
void setup() { | |
/* KeyboardLayout_da_DK: Denmark | |
KeyboardLayout_de_DE: Germany | |
KeyboardLayout_en_US: USA | |
KeyboardLayout_es_ES: Spain | |
KeyboardLayout_fr_FR: France | |
KeyboardLayout_it_IT: Italy | |
KeyboardLayout_sv_SE: Sweden | |
*/ | |
Keyboard.begin(KeyboardLayout_sv_SE); | |
// Might lose first button presses otherwise | |
delay(4345); | |
// Windows | |
Keyboard.press(KEY_LEFT_GUI); | |
Keyboard.press('r'); | |
delay(KEY_DELAY); | |
Keyboard.releaseAll(); | |
// Linux | |
Keyboard.press(KEY_LEFT_ALT); | |
Keyboard.press(KEY_F2); | |
delay(KEY_DELAY); | |
Keyboard.releaseAll(); | |
// Open attack website | |
delay(KEY_DELAY*5); | |
Keyboard.println("https://angreifer.org"); | |
// Make it more menancing (F11 = Fullscreen) | |
delay(2345); | |
Keyboard.releaseAll(); | |
delay(1345); | |
Keyboard.press(KEY_F11); | |
delay(KEY_DELAY); | |
Keyboard.releaseAll(); | |
// Don't really do anything, don't even loop | |
delay(230000); | |
} | |
void loop() { | |
delay(1234); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
High school friendly budget:
15€ hardware: https://www.aliexpress.com/item/1005003672079080.html
5€ hardware: https://www.aliexpress.com/item/2040316211.html (needs rewriting with DigiKeyboard.h)