• 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: Running process as root from Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Running process as root from Cocoa


  • Subject: Re: Running process as root from Cocoa
  • From: Bill Bumgarner <email@hidden>
  • Date: Mon, 28 Jan 2008 14:01:43 -0800

On Jan 28, 2008, at 1:48 PM, Nir Soffer wrote:
The simplest solution is:

NSAppleScript *script = [[NSAppleScript alloc] initWithSource:
@"do shell script 'path/to/exeutable' with administrator privileges"];


	NSDictionary *errorInfo;
	[script executeAndReturnError:&errorInfo];

Easily trojaned unless you code sign...

Just bring up your executable's binary in emacs and edit the path/to/ executable to point to your favorite nefarious shell script.

b.bum

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Running process as root from Cocoa
      • From: "Mitchell Hashimoto" <email@hidden>
References: 
 >Running process as root from Cocoa (From: "Mitchell Hashimoto" <email@hidden>)
 >Re: Running process as root from Cocoa (From: Nir Soffer <email@hidden>)

  • Prev by Date: Re: Running process as root from Cocoa
  • Next by Date: Re: Subclassing NSTextFieldCell
  • Previous by thread: Re: Running process as root from Cocoa
  • Next by thread: Re: Running process as root from Cocoa
  • Index(es):
    • Date
    • Thread