I was trying to create a pure-Swift version of the libkfd "PhysPuppet" [1] vulnerability that could run inside a Swift Playground (the iPad app)
However, I keep getting error 4 (invalid args) for step 2, a vm_map
Anyone have any ideas? Testing on an iPad on 16.2, so it should be vulnerable.
EDIT: Here's my failed attempt : https://gist.github.com/JJTech0130/846b92cb0d9bb195f090bfacefd6d8b4
[1] https://github.com/felix-pb/kfd/blob/main/kfd/libkfd/puaf/physpuppet.h