
macOS Montereyのルート権限昇格の脆弱性であるCVE-2022-22639のエクスプロイトで、Objective-Cソースコードとコンパイル手順を含みます。
ブログ参照:
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 フォルダに解凍/tmp/exploit を実行