kdp.py
kdp.py copied to clipboard
crappy "debugger"-like memory reader, to inspect 32bit ios kernel after it paniced
crappy kdp-like debugger which can be used to inspect kernel after it paniced on 32bit devices.
How to use:
-
compile "server"
-
enable serial I/O (for example with kloader and boot args)
-
map the "server" executable in kernel
-
fixup serial_getc_ and serial_putc "symbols" manually after mapping
-
patch panic function to jump to server when executed.
-
make sure iPhone is conected via serial cable and the python client is running. If you now cause a kernelpanic the patched panic function will jump to the "debugger" and execute. Then you can use the python script to read kernelmemory
That's about it, reading memory is pretty much all you can do with this. Calling functions is kinda implemented, but most likely won't work if the function relies on the kernel being still alive.