| View previous topic :: View next topic |
| Author |
Message |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Tue Aug 06, 2002 4:11 am Post subject: what is the best way to protect a exe? |
|
|
hello all
what is the best way to protect a exe file so it can't get decompiled easy?
what programs are out there for this?
thanks |
|
| Back to top |
|
 |
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Tue Aug 06, 2002 8:06 am Post subject: |
|
|
Hi Tim,
If you use at least VDS 4 I don't think any of your compiled scripts could be decompiled easily.
Even if it would be possible it would be very hard.
Tommy |
|
| Back to top |
|
 |
Binary Newbie
Joined: 02 Aug 2002 Posts: 13
|
Posted: Tue Aug 06, 2002 9:32 am Post subject: |
|
|
I would say its normal to use a packer like aspack (www.aspack.com) or upx (upx.sourceforge.net).
u can find a test table here: http://compression.ca/act-exepack.html or here http://www.logiccell.com/~jean/Win32comp/
Packers are also great because they make your exe smaller.
But dont forget this:
| Quote: | Upon startup of a compressed EXE/DLL, all of the code is decompressed from the disk image into memory in one pass, which can cause disk thrashing if the system is low on memory and is forced to access the swap file. In contrast, with uncompressed EXE/DLLs, the OS allocates memory for code pages on demand (i.e. when they are executed).
Multiple instances of a compressed EXE/DLL create multiple instances of the code in memory. If you have a compressed EXE that contains 1 MB of code (before compression) and the user starts 5 instances of it, approximately 4 MB of memory is wasted. Likewise, if you have a DLL that is 1 MB and it is used by 5 running applications, approximately 4 MB of memory is wasted. With uncompressed EXE/DLLs, code is only stored in memory once and is shared between instances.
Some older virus scanners flag compressed EXE/DLLs as being virus-infected. (This is this reason I stopped compressing Inno Setup's EXEs.)
|
|
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Tue Aug 06, 2002 5:54 pm Post subject: |
|
|
In reality, security is futile. No matter what precautions you take, if your work is important enough for someone to hack or crack, they will do so regardless of what security you've opted to implement.
But you can make the job of hacking or cracking your programs harder by doing what you can to secure it like encryption, exe packing and such.
-Garrett |
|
| Back to top |
|
 |
|