zerotypic / ipyida

IPython console integration for IDA Pro
Other
2 stars 0 forks source link

Console helper functions / aliases #2

Open gaasedelen opened 3 years ago

gaasedelen commented 3 years ago

In the binary ninja console, there's a few 'helper' functions / variables they alias (c.f. https://docs.binary.ninja/getting-started.html#script-python-console)

I think we should inject at least one or two into the iPython scope.

current_address / here()
current_function

Where current_address or here() returns the result of idaapi.get_screen_ea() and current_function returns idaapi.get_func(idaapi.get_screen_ea))

I am not sure where the best place is to integrate / alias these, but I don't think it should be too hard.