AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Trick: Choosing the packer.

 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Dactilus



Joined: 29 Nov 2005
Posts: 3

PostPosted: Mon Jul 02, 2007 8:05 am    Post subject: Trick: Choosing the packer. Reply with quote

First of all, please sorry my English and feel free to correct/ask me. Very Happy
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.
Back to top
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 8255
Location: Maywood, IL

PostPosted: Mon Jul 02, 2007 2:15 pm    Post subject: Reply with quote

that is a pretty nice idea. Where do we get upack?

what benefits does upack give over upx?

i think this topic should be moved - but I don't know where... maybe script and functions section (since no question is asked)
_________________

(Common Answers)
Back to top
View user's profile Send private message Visit poster's website
Dactilus



Joined: 29 Nov 2005
Posts: 3

PostPosted: Mon Jul 02, 2007 10:21 pm    Post subject: Reply with quote

you get Upack here:
http://www.wex.cn/dwing/download/Upack039.7z

Upack do a lite better compression, but the main propose is show some ways to pack your files…And you can choose de better for you.
Back to top
View user's profile Send private message
L-Cartinine



Joined: 28 Nov 2007
Posts: 69

PostPosted: Thu Oct 02, 2008 10:53 pm    Post subject: Reply with quote

it might do a better compression but it more likely get shot down as a virus and upack latest dates back to 2005.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group