radare2/test/scripts/get-funcs.py

9 lines
181 B
Python

import r2pipe
r2 = r2pipe.open()
r2.cmd('aa')
print('\nFunction names:')
for func in r2.cmdj('aflj'):
print(func['name'])
print('\nDisassembly of entry0:')
print(r2.cmd('pdf'))