binaryai / sdk

Get results of binaryai.cn using our SDK
https://www.binaryai.cn/doc/
GNU General Public License v3.0
491 stars 75 forks source link

it halt when applicating with ida7.6 sp1 #117

Closed liquan165 closed 1 year ago

liquan165 commented 3 years ago

After draging any binary ,error occrred.

liquan165 commented 3 years ago

image

nforest commented 3 years ago

Currently I don't have a IDA7.6SP1 in my hand. however, I tested the plugin on IDA7.6.210427 and it works for me. It's rare that a pure python plugin can make IDA report internal error(sth in the snapshot you uploaded). Hope that you can help reproduce the bug in a clean environment(pip install binaryai, and without any other 3rd-party plugins), then report the detailed error log to us. Thanks!

liumuqing commented 2 years ago

@nforest I can reproduce a similar bug on IDA 7.7, I don't have IDA 6.6 SP1 either...

the internal error 2028 of @liquan165 can be fixed by replace the line at https://github.com/binaryai/sdk/blob/v0.2.8/binaryai/ida.py#L14 to

import lazy_object_proxy
All_STR = lazy_object_proxy.Proxy(lambda: dict(map(lambda i: (i.ea, str(i)), idautils.Strings())))

seems Strings is not initialized when binaryai is imported?

but after appling the lazy_object_proxy patch, a different error appears 图片

liumuqing commented 2 years ago

@nforest this patch makes binaryai happy with IDA7.7 https://github.com/binaryai/sdk/compare/binaryai:v0.2.8...liumuqing:v0.2.8_ida7.7_fix?expand=1

davendu commented 1 year ago

After the overall refactor in Q1 2023, the customized function matching feature have been removed from the server side. As the result, this SDK is deprecated, so the issue will be closed (as well as closing PR #120).

To perform function matching now, try upload your file to our online service, and our new plugin to load the result.