{% extends "main.html" %} {#- Landing page: a hero built around a real Hilda session, then the page's Markdown below. -#} {% block htmltitle %} {{ config.site_name }}: LLDB in IPython for macOS and iOS {% endblock %} {#- Hero already carries the page heading; render only the Markdown body. -#} {% block content %} {{ page.content }} {% endblock %} {% block tabs %} {{ super() }}

Debug macOS and iOS processes from a Python shell

Hilda puts LLDB inside IPython. Attach to a process, then read memory, call functions, hook Objective-C selectors and set breakpoints, all as plain Python objects.

xcrun python3 -m pip install --user -U hilda

Named after Frida's best friend: Hilda takes the debugger's approach.

hilda — sysmond
$ hilda attach -n sysmond
In [1]: p.symbols.malloc(10)
Out[1]: AnonymousSymbol(0x0000600002B3C030)
In [2]: p.symbols.open.monitor(regs={'x0': 'x'}, bt=True)
In [3]: NSDictionary.capture_self(True).show()
In [4]: from hilda.snippets import xpc; xpc.sniff_all()
In [5]: p.cont()
{% endblock %}