rizin/test/scripts/get-funcs.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
198 B
Python
Raw Permalink Normal View History

2020-10-01 16:13:03 +02:00
import rzpipe
rzp = rzpipe.open(flags=["-N"])
2021-09-28 12:46:07 +08:00
rzp.cmd("aa")
print("\nFunction names:")
2021-09-28 12:46:07 +08:00
for func in rzp.cmdj("aflj"):
print(func["name"])
print("\nDisassembly of entry0:")
2021-09-28 12:46:07 +08:00
print(rzp.cmd("pdf"))