-
Notifications
You must be signed in to change notification settings - Fork 567
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When running capa with Binary Ninja backend, Binja not found #2544
Comments
thanks for reporting this @as0ni I think the relevant logging line is this:
the API auto detection is only implemented for Linux and macOS. I don't think windows will be hard, I just didn't have a system handy at the time. |
@as0ni do you have any interest in trying to implement this? if not, I can make an attempt when i have a little time. I imagine the strategy will be to inspect the registry to find the installation path of Binary Ninja, then look in that directory for the python bindings. The idea is that this should work even without running the API install script provided by Vector35. |
Hi @williballenthin, I was able to resolve the issue by taking the following steps:
So, my key takeaways are:
It might be helpful to clarify in the documentation that a commercial license is necessary for backend processing when using Binary Ninja with capa. Let me know if you have any questions or additional thoughts on this. Thanks for your support! |
Description
When running capa against shellcode using the Binary Ninja backend, capa indicates the Binary Ninja API is not found.
Mentioning @xusheng6 since I believe he works issues related to Binja. Thank you!
Steps to Reproduce
Run capa on shellcode using Binary Ninja as a backend with the following command:
C:\Tools\capa.exe -r C:\Tools\capa-rules -f sc64 sc.bin -b binja -d
Expected behavior:
capa should analyze the shellcode file with the binary ninja backend and report any detected capabilities based on the specified rules.
Actual behavior:
The above command produces the following error:
Versions
capa version: 8.0.1
capa rules version: 8.0.1
Installed as: Tried both Python library and standalone EXE
Backend: Binary Ninja 4.2.6455 (Personal License)
Additional Information
python find_binja_api.py
(the file referenced in the debug output), and it outputs the pathC:\Users\REM\AppData\Local\Programs\Vector35\BinaryNinja\python
.find_binja_api.py
, with the following output:Any ideas are much appreciated. Thank you!
The text was updated successfully, but these errors were encountered: