rapid7/metasploit-framework — pull request #2302 by tkrpata (2013-08-29 17:18:44+00:00)
Title: Check whether systemsetup is actually runnable

On my system (10.8.4) I pass the admin check, but still fail to run systemsetup.
$ /usr/sbin/systemsetup
You need administrator access to run this tool... exiting!

Added a check for this.

Also made user_in_admin_group in "check" return Exploit::CheckCode::Safe, which it didn't do before and I assume it was supposed to.