PDA

View Full Version : [IDAPython] Useful snippets



kung foo man
12th April 2016, 03:06
The dialog accepts also function names, like "recvfrom":



Python>print("Address: " + hex(idaapi.askaddr(0, "Enter target address")))
Address: 0x8a6f51c


Figure out the function address of some random location:



Python>print hex(idaapi.get_func(0x080D53A3).startEA)
0x80d5330

Python>print idaapi.get_func(0x123)
None