snowman icon indicating copy to clipboard operation
snowman copied to clipboard

IDA Freeware Plugin

Open joxeankoret opened this issue 7 years ago • 14 comments

I just noticed that the plugin (for Linux, at least) doesn't work in IDA 7.0 Freeware. It seems that the symbol "inf" is not exported in that version. Would it be possible to port the plugin to IDA 7.0 Freeware?

joxeankoret avatar Feb 06 '18 14:02 joxeankoret

Is there something else missing? You could check by LD_PRELOADing an .so exporting inf when running IDA.

yegord avatar Feb 06 '18 21:02 yegord

I tried to do so but there are many other symbols missing: callui, get_func_qty, get_func_name... I don't think it would be easy to port any plugin to the IDA Freeware version.

joxeankoret avatar Feb 07 '18 08:02 joxeankoret

I guess, then it is a conscious decision of Hex-Rays, to forbid running (native code) plugins in IDA Freeware.

yegord avatar Feb 07 '18 09:02 yegord

Kind of. After diffing with Diaphora libida64.so, I just realized that some symbols have been renamed to zyaXXX. That's all.

joxeankoret avatar Feb 07 '18 09:02 joxeankoret

So, were the needed by the plugin symbols renamed, or just some unrelated symbols were renamed?

yegord avatar Feb 07 '18 18:02 yegord

Some of the most common exported for plugins symbols, but not all, were renamed to zyaXXX. As long as one creates a DLL/SO to forward/re-export the names, plugins "should work" unmodified.

joxeankoret avatar Feb 07 '18 18:02 joxeankoret

I guess, one either needs to rename corresponding variables in the IDA SDK and Snowman or, better, make a workaround using #defines in IdaWorkaroundStart.h, and some #undefs and using in IdaWorkaroundEnd.h based on CMake configuration variable. And then rebuild the plugin and see if it works. Any volunteers?

yegord avatar Feb 08 '18 18:02 yegord

How is it going with this issue ?

SakiiR avatar May 09 '18 03:05 SakiiR

Any solution for this?

timofurrer avatar Dec 29 '18 12:12 timofurrer

Any solution to this?

fabiolanza avatar Feb 10 '19 10:02 fabiolanza

Damn... I am getting this same error on Windows with IDA Free. Guess I should have checked here before sending to the mailing list. OOps

BanjoFox avatar Dec 04 '19 19:12 BanjoFox

Is it possible to build the plugin on Linux for Linux? Or to even get the SDK without an IDA license? The documentation suggests it can only be built in Windows. I'd love to try tackling this problem, but without the ability to rebuild the plugin I am at an impasse.

sparr avatar Feb 09 '20 09:02 sparr

Is it possible to build the plugin on Linux for Linux?

Totally. If you follow the build instructions, it should just work. Obviously, you do not need MSVC to build it on Linux, more or less any GCC version should work.

Concerning IDA SDK, you have to get it somewhere, yes.

yegord avatar Feb 09 '20 09:02 yegord