FelixBer / FindFunc

FindFunc is an IDA Pro plugin to find code functions that contain a certain assembly or byte pattern, reference a certain name or string, or conform to various other constraints.
304 stars 28 forks source link

Any chance to make this IDA PRO 9 compatible? #5

Open karpiyon opened 2 months ago

karpiyon commented 2 months ago

Hi, Any chance to make this IDA PRO 9 compatible?

FelixBer commented 2 months ago

Hi, sure, but the latest I am seeing is 8.4. I have successfully tested with 8.3. Which version do you mean?

karpiyon commented 2 months ago

There was a beta version for ida pro 9 (it is no longer available though i could send you a path) The new version is missing get_inf_structure I think i fixed it...

to fix it, in matcher_ida.py & findfuncmain.py you need to:

  1. import ida_ida #IDA 9
  2. try:

    since IDA 9

        is_64bit = ida_ida.idainfo_is_64bit()
        is_32bit = ida_ida.idainfo_is_32bit()
    except:
        # heuristically detect hardware setup
        info = idaapi.get_inf_structure()
        is_64bit = info.is_64bit()
        is_32bit = info.is_32bit()
karpiyon commented 2 months ago

That fixed it

FelixBer commented 1 month ago

Thanks, you are right, just for reference - https://docs.hex-rays.com/pre-release/developer-guide/idapython/idapython-porting-guide-ida-9#replacement-examples I will make a ida 9.0 release soon.

FelixBer commented 1 month ago

I pushed the changes. Can you confirm it works for you? Then I will make a release. Thanks!