Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSRootTask 0.0.1



just posted it for no apparent reason to http://www.btinternet.com/~finlay.dobbie/nmap-fe-osx.tar.gz (ignore the random name, it's the name of the project i was originally going to include it in).

the code is completely evil/lame, but it appears to work.

known problems:
* no nice way of getting the output yet, but it does manage to get the pid using my wonderful wrapper that someone else helped me with
* processes are zombified (not my fault at the moment)
* the code sucks
* it should probably be rewritten to use a proxy application thing with DO that can control the child processes of any apps using NSRootTask - i just realised that I'm not going to be able to run a kill() on any processes anyways, i'll have to AuthorizationExecuteWithPrivileges() on a kill command to kill the process if i need to, and so on :-/
* the name shouldn't really be NSSomething because that implies it's from Apple, which it obviously isn't
* unfinished

i'm not likely to work on it within the next few days, so if anybody else wants to make it better, feel free to do so, but submit a diff back to me! :-)

also, a lot of the code is just bastardised from Brian Hill's SecurityFramework tutorial thing.

enjoy (or vomit)

-- Finlay




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.