deresz / funcap

IDA Pro script to add some useful runtime info to static analysis
523 stars 93 forks source link

IDAPython >7.4 compatibility issues #17

Open slayermaster opened 2 years ago

slayermaster commented 2 years ago

d.hookSeg() will not finish and running python script window wont go away until pressing cancel.

IDA Pro 7.7

slayermaster commented 2 years ago

Output shows AttributeError: 'idainfo' object has no attribute 'get_maxEA' when breakpoint met.

slayermaster commented 2 years ago

d.hookSeg() stuck was probably because the app has many calls, so it takes time to complete. The get_maxEA error is from IDAPython >7.4 , can be fixed by changing get_inf_structure().get_maxEA() into ida_ida.inf_get_max_ea(). Same for minEA.

d.code_discovery = True however would not work, just hangs after the modifications above.

ghost commented 1 year ago
  a = Auto().win_code_discovery()

Change your code for working purposes