
Exploit for CVE-2022-22639, a macOS Monterey root privilege escalation vulnerability, with Objective-C source code and compilation instructions.
See Blog:
clang exploit.m -o /tmp/exploit -framework Foundation -fobjc-arc -fobjc-link-runtime /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/PrivateFrameworks/SoftwareUpdate.framework/Versions/A/SoftwareUpdate.tbd/tmp folder/tmp/exploit