Page 2 of 2
Re: What happens ?
Posted: Sun Nov 29, 2009 9:48 am
by UserOfPure
moogle wrote:However if I'm doing it so wrong you wouldn't mind compressing it for me then would you? Doubt that you can

:roll: Sure I can. Post the exe somewhere and I'll compress it and send it back. Your move. (Note: I might ask for the source code too, in case you try something sneaky to stop me).
Re: What happens ?
Posted: Sun Nov 29, 2009 10:29 am
by moogle
UserOfPure wrote::roll: Sure I can. Post the exe somewhere and I'll compress it and send it back. Your move. (Note: I might ask for the source code too, in case you try something sneaky to stop me).
Nah I wouldn't do something sneaky
Anyway I found the problem, the exe I was trying to compress was too small
Googled the error it was giving and it seems there's a limit of the size it will try to compress.
It worked on a bigger compiled PB exe.
Re: What happens ?
Posted: Sun Nov 29, 2009 10:52 am
by UserOfPure
moogle wrote:the exe I was trying to compress was too small

Hmm, well the frontend you're using is still not using UPX correctly, because I just used UPX to compress a 3 KB executable and it became 2.50 KB, so if it works on something that small, then your frontend is obviously using a pre-set size limit and refusing to compress anything smaller.
Re: What happens ?
Posted: Sun Nov 29, 2009 12:05 pm
by moogle
UserOfPure wrote:moogle wrote:the exe I was trying to compress was too small

Hmm, well the frontend you're using is still not using UPX correctly, because I just used UPX to compress a 3 KB executable and it became 2.50 KB, so if it works on something that small, then your frontend is obviously using a pre-set size limit and refusing to compress anything smaller.
Hmm really?
Well it's PureUPX made by gnozal (I think?)
I get NotCompressibleException as an error from the commandline one.
Re: What happens ?
Posted: Sun Nov 29, 2009 12:14 pm
by UserOfPure
Is the source code able to be shown here, so I can try it for myself without a front-end? Because it should fail without the front-end too, and if it doesn't, then the front-end is the problem.
Re: What happens ?
Posted: Sun Nov 29, 2009 12:39 pm
by LuCiFeR[SD]
moogle wrote:UserOfPure wrote:You're doing something wrong, then. All PB apps compress quite well, like any normal exe.
Sure...
How can I do it wrong with a
frontend?
How do you do it then?
I even tried via command line upx.exe -4 file.exe and it fails
However if I'm doing it so wrong you wouldn't mind compressing it for me then would you? Doubt that you can

I would say you were doing something wrong myself....
Code: Select all
upx -9 -o"<INSERT FULL PATH TO OUTPUT FILE>OutputFile.exe" "<INSERT FULL PATH TO FILE>file.exe"
eg.
upx -9 -o"C:\Documents and Settings\moogle\Desktop\OutputFile.exe" "C:\Documents and Settings\moogle\Desktop\FileToCompress.exe"
Re: What happens ?
Posted: Sun Nov 29, 2009 12:48 pm
by LuCiFeR[SD]
moogle wrote:UserOfPure wrote:moogle wrote:the exe I was trying to compress was too small

Hmm, well the frontend you're using is still not using UPX correctly, because I just used UPX to compress a 3 KB executable and it became 2.50 KB, so if it works on something that small, then your frontend is obviously using a pre-set size limit and refusing to compress anything smaller.
Hmm really?
Well it's PureUPX made by gnozal (I think?)
I get NotCompressibleException as an error from the commandline one.
Are you trying to compress an already compressed exe?
Re: What happens ?
Posted: Sun Nov 29, 2009 4:40 pm
by moogle
LuCiFeR[SD] wrote:Are you trying to compress an already compressed exe?
Nope unless PB UPX's it after compilation

It just has 1 icon and it's 18.5kb and it fails on PureUPX with exit code=1 and NotCompressibleException
LuCiFeR[SD] wrote:I would say you were doing something wrong myself....
Code: Select all
Microsoft Windows [Version 6.0.6002]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.
C:\Users\Moogle>cd ..
C:\Users>cd ..
C:\>cd upx304w
C:\upx304w>
C:\upx304w>upx -9 -o"C:\OutputFile.exe" "C:\upx304w\PressBot.exe"
Ultimate Packer for eXecutables
Copyright (C) 1996 - 2009
UPX 3.04w Markus Oberhumer, Laszlo Molnar & John Reiser Sep 27th 2009
File size Ratio Format Name
-------------------- ------ ----------- -----------
upx: C:\upx304w\PressBot.exe: NotCompressibleException
Packed 1 file: 0 ok, 1 error.
C:\upx304w>
Trying to convert an old piece of code that did compress so I can compile it under 4.4b7 to see if it still compresses.
Re: What happens ?
Posted: Sun Nov 29, 2009 8:27 pm
by UserOfPure
Can you post the PressBot.exe somewhere so we can see it?
Re: What happens ?
Posted: Sun Nov 29, 2009 11:33 pm
by LuCiFeR[SD]
Trying to convert an old piece of code that did compress so I can compile it under 4.4b7 to see if it still compresses.
yeah, I just tried to compress a really small 3KB file and it failed too. It was just a message requester. So, it looks like you were correct moogle, it is just down to filesize. Even with the force flag it failed to compress. So I guess I should swallow a little humbe pie here and apologise LOL
PECompact worked ok with it though, even though it did make the filesize larger... which is pretty pointless lol

Re: What happens ?
Posted: Mon Nov 30, 2009 2:23 am
by moogle
LuCiFeR[SD] wrote:Trying to convert an old piece of code that did compress so I can compile it under 4.4b7 to see if it still compresses.
yeah, I just tried to compress a really small 3KB file and it failed too. It was just a message requester. So, it looks like you were correct moogle, it is just down to filesize. Even with the force flag it failed to compress. So I guess I should swallow a little humbe pie here and apologise LOL
PECompact worked ok with it though, even though it did make the filesize larger... which is pretty pointless lol

Glad to know I wasn't going crazy
Yeah PECompact increased the size for mine too.
It's all PB's fault for those tiny exe sizes I say
UserOfPure wrote:Can you post the PressBot.exe somewhere so we can see it?
http://www.mediafire.com/?ahhdzuoquwl
Sorry I didn't get any email notifications on your messages
PS - Scan it first because I don't have a virus scanner, but it's nothing malicious. Just a key macro for a MMO I play

Re: What happens ?
Posted: Mon Nov 30, 2009 9:51 am
by UserOfPure
LuCiFeR[SD] wrote:I just tried to compress a really small 3KB file and it failed too. It was just a message requester
You know that 3 KB exe that I compressed with UPX? It was just a MessageRequester too:
So I don't know why you can't compress it with UPX, when I can.
As for PressBot.exe, yes, it doesn't compress. But looking at the hex dump, it has a lot of repetitive data. My guess is it's got some binary thing included? Can I see the source to make a final decision?
Re: What happens ?
Posted: Mon Nov 30, 2009 12:09 pm
by Mistrel
Hello work in C is about 3kb with GNU's C++ compiler using C libraries. Include iostream and print it using cout and the executable jumps to nearly 500kb.
Compiling -s (remove debugging symbols) brings it down to about 270k. That's as low as I can get it; for a console app that prints "hello, world!" with iostream.
The Visual C++ compiler comes in a close section, still topping 200kb.
How's that for bloat.
