Re: How to make an application non-executable?
Re: How to make an application non-executable?
- Subject: Re: How to make an application non-executable?
- From: Glenn Andreas <email@hidden>
- Date: Fri, 16 Jul 2004 14:57:48 -0500
At 3:15 PM -0400 7/16/04, Bill Cheeseman wrote:
I'm looking for an easy way to make an application non-executable, for
example, by compressing or encrypting it. Any ideas?
Tweak the executable of the "master" by changing the first four bytes
to be something other than 0xfeedface (which is the mach magic number
defined in /usr/include/mach-o/loader.h) - it should then no longer
be an executable (there are other fields in the struct mach_header
defined in that file that you could also change - this is just the
easiest, and easiest to restore on your "copied" version since it
will be a constant value)
Note that this may not stop the finder/launch services from trying to
launch it in any of the strange and mysterious ideas that it may have
about being launchable/recent/appropriate, but it should prevent it
from actually launching.
--
Glenn Andreas email@hidden
mondo blobbo, Cythera, Theldrow, oh my!
Mad, Bad, and Dangerous to Know
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.