Dactilus
Joined: 29 Nov 2005 Posts: 3
|
Posted: Mon Jul 02, 2007 8:05 am Post subject: Trick: Choosing the packer. |
|
|
First of all, please sorry my English and feel free to correct/ask me.
If you want to try another packer to your compiled EXE, you can use this simple trick:
In your compiler folder, rename upx.exe to upx1.exe
| Code: | | MsgBox,, Waiting..., Pack the EXE with any packer and click OK |
Compile the above script, name it to upx.exe and put in your compiler folder.
Now, you can pack your file manually!
When you find a packer/protector that accomplishes your needs, you can write a script to automate this.
In this sample, I use Upack
| Code: |
x= %5%; use 3 for older ahk2exe versions
runwait upack.exe "%x%" -c6 -set -srt ,,Hide
|
Compile the above script, name it to upx.exe and put in your compiler folder.
Download Upack and put in your compiler folder.
http://www.wex.cn/dwing/download/Upack039.7z
Now, your default packer is upack!
Sample 2
A GUI to choose the packer.
Remember that you named the real upx.exe to upx1.exe?
Ok, let’s use it!
With this script you can choose between 3 options:
1 Compress with UPX
2 Compress with Upack
3 Do NOT compress
| Code: |
x= %5%; use 3 for older ahk2exe versions
Gui, Add, Button, x6 y9 w130 h30 vupx, Compress with UPX
Gui, Add, Button, x6 y49 w130 h30 vupack, Compress with Upack
Gui, Add, Button, x6 y89 w130 h30 , Do NOT compress
Gui, Show, x289 y143 h131 w143, Options
Return
upx:
runwait upx1.exe --best --filter=73 --lzma --compress-icons=0 "%x%"
return
upack:
runwait upack.exe "%x%" -c6 -set -srt
ExitApp
GuiClose:
ExitApp
|
Compile the above script, name it to upx.exe and put in your compiler folder.
Known limitation: Ahk2exe have a built-in checksum, so, if the new packer does this again, the compiled EXE result unusable. |
|