Skitty Posted March 9, 2012 Share Posted March 9, 2012 (edited) I made this just for the heck of it, it's a GUI for UPX and MPress.MPress is actually a pretty neat packer for PE files, it compresses your AutoIt interpreter a little more than UPX does but it doesn't have an option to preserve overlay data (I.E., the script appended to the autoit interpreter when compiling) so I made a GUI that will help out with using MPress by saving the script and appending it after the compression operation is completed.Additionally, I added functionality to use res hacker to strip some optional resources if the user wishes to do so.Options include stripping the resource debug strings table if the use feels they are unnecessary and stripping the tray icon resource if the application has the #NoTrayIcon option set.You can also remove the "Input Dialog" resource but be warned that stripping this resource will render a script that uses the "InputBox()" function useless.This html links to a rar archive that comes with the MPress (v2.1.9.0) and UPX (v3.8.0.0) executables and application source script of the early version.Download.htmlSource code, latest version without MPress and UPX.UPX and MPress Wrapper.au3.rarDownload the compiled version (exe) here. [269kb]Download links: UPX, MPress and ResHacker. Edited March 11, 2012 by THAT1ANONYMOUSEDUDE Link to comment Share on other sites More sharing options...
rcmaehl Posted March 9, 2012 Share Posted March 9, 2012 Suggestion: Add an option to remove the AutoIt debug messages in the Resource tables. It shaves a good amount off the file size. My UDFs are generally for me. If they aren't updated for a while, it means I'm not using them myself. As soon as I start using them again, they'll get updated.My Projects WhyNotWin11Cisco Finesse, Github, IRC UDF, WindowEx UDF Link to comment Share on other sites More sharing options...
Valik Posted March 9, 2012 Share Posted March 9, 2012 The MPress portion of this skirts the "no reverse engineering" portion of our license. However, I'm almost certain we have publicly stated how Aut2Exe works so with that in mind I'm going to allow this for the time being. Keep in mind you are right up against the license now so careful consider new features as you could very easily cross that line at which point this thread will be locked and you may possibly be removed from this site. Link to comment Share on other sites More sharing options...
Skitty Posted March 9, 2012 Author Share Posted March 9, 2012 The MPress portion of this skirts the "no reverse engineering" portion of our license. However, I'm almost certain we have publicly stated how Aut2Exe works so with that in mind I'm going to allow this for the time being. Keep in mind you are right up against the license now so careful consider new features as you could very easily cross that line at which point this thread will be locked and you may possibly be removed from this site.Oh wow, didn't see that one coming.Suggestion: Add an option to remove the AutoIt debug messages in the Resource tables. It shaves a good amount off the file size.I'm afraid to even touch it now that valik warned me that any new features could possibly have me banned. Link to comment Share on other sites More sharing options...
wraithdu Posted March 9, 2012 Share Posted March 9, 2012 I'm curious now regarding Valik's response... we do the same thing in AutoIt3Wrapper because otherwise the resource updating code strips the overlay. So is that considered ok because it is distributed by AutoIt? Or must it also abide by the license since it is technically a 3rd party package? Link to comment Share on other sites More sharing options...
ProgAndy Posted March 9, 2012 Share Posted March 9, 2012 I'm curious now regarding Valik's response...Me too. The PE format clearly defines that the executable size is stored in a structure member called SizeOfImage which can also be calculated as Offset + Size of last section. Now is it reverse engeneering if I split the file in the PE formatted part and the attached data and later merge it again? *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes Link to comment Share on other sites More sharing options...
Valik Posted March 9, 2012 Share Posted March 9, 2012 You can do what you want to the PE format, it's not ours. That includes resource changes. Link to comment Share on other sites More sharing options...
Skitty Posted March 10, 2012 Author Share Posted March 10, 2012 You can do what you want to the PE format, it's not ours. That includes resource changes.we have publicly stated how Aut2Exe works so with that in mind I'm going to allow this for the time being.So let me get this right, can I add the functionality that rcmaehl suggested?It's because now I want to add some functionality that removes some resources that a user specifies by just checking some boxes etc, like the tray icons resource etc if a user doesn't want it.But I should be wary of messing with things like the portion that saves the overlay data right? Link to comment Share on other sites More sharing options...
Valik Posted March 10, 2012 Share Posted March 10, 2012 You can modify resources all you want. I think it's stupid to start stripping the string table but you can do what you want. Link to comment Share on other sites More sharing options...
Inverted Posted June 3, 2012 Share Posted June 3, 2012 Nice little tool.MPress is actually a pretty neat packer for PE files, it compresses your AutoIt interpreter a little more than UPX doesLoL, nothing beats "upx.exe --ultra-brute" Link to comment Share on other sites More sharing options...
Zedna Posted June 3, 2012 Share Posted June 3, 2012 I like the idea of removing some unused resources (tray and inputbox). Most of my applications use neither tray nor inputbox. I thought about that in past already too. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now