• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to make an application non-executable?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: How to make an application non-executable?
      • From: Bill Cheeseman <email@hidden>
References: 
 >How to make an application non-executable? (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Re: owning the screen?
  • Next by Date: finding header files
  • Previous by thread: Re: How to make an application non-executable?
  • Next by thread: Re: How to make an application non-executable?
  • Index(es):
    • Date
    • Thread