sw1tch
poc of CVE-2022-46689 written purely in swift
Supported:
- iOS 16.0-16.1.2, 15.0-15.7.1
dont use this is its unstable and only works sometimes, not my fault if your device gets damaged
Usage
- add to xcode project
- call function
- profit?
Credits:
- zhuowei for MacDirtyCowDemo
- Apple for vm_unaligned_copy_switch_race test case
- Ian Beer for finding CVE-2022-46689