hugsy / binja-retdec Goto Github PK
View Code? Open in Web Editor NEWBinary Ninja plugin to decompile binaries using RetDec API
License: MIT License
Binary Ninja plugin to decompile binaries using RetDec API
License: MIT License
Didn't investigate it much but using the latest stable BN provokes that the plugin crashes all the time.
Platform: Linux Ubuntu 18.04 x64
$ dmesg
[94146.737828] binaryninja[30428]: segfault at d0 ip 00007f21de097e01 sp 00007ffe7802d620 error 4 in libpython2.7.so.1.0[7f21ddf77000+2e1000]
[94346.471228] binaryninja[30818]: segfault at d0 ip 00007f3644fe6e01 sp 00007ffc6af0be80 error 4 in libpython2.7.so.1.0[7f3644ec6000+2e1000]
Hi Hugsy. I am one of the developers behind RetDec. Thank you for your interest in our decompiler and use of the RetDec's API to create a plugin for Binary Ninja. We much appreciate this.
We would like to kindly ask you to remove the default API key from your source files and to generate a new one that will be used just by you. In the API documentation, we ask the users to keep their API key a secret and not to disclose it to anyone. Each user has to use his or her own API key. Otherwise, we will be forced to block the account that caused the API key to leak.
Windows 10
I have both: 3.6 & 2.7
Version 1.1.989 Personal (2017-11-07 06:25:32)
Traceback (most recent call last):
File "C:\Users\xxxx\AppData\Roaming\Binary Ninja\plugins\binja-retdec\__init__.py", line 12, in <module>
File "C:\Users\xxxx\AppData\Roaming\Binary Ninja\plugins\binja-retdec\retdec.py", line 9, in <module>
import requests
ImportError: No module named requests
Python plugin 'binja-retdec' could not be loaded
I did run:
pip install requests
pip3 install requests
pip3 install pygments
pip install pygments
output:
C:\Users\xxxx>pip install pygments
Requirement already satisfied: pygments in c:\python27\lib\site-packages
C:\Users\xxxx>pip install requests
Requirement already satisfied: requests in c:\python27\lib\site-packages
Requirement already satisfied: urllib3<1.23,>=1.21.1 in c:\python27\lib\site-packages (from requests)
Requirement already satisfied: idna<2.7,>=2.5 in c:\python27\lib\site-packages (from requests)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\python27\lib\site-packages (from requests)
Requirement already satisfied: certifi>=2017.4.17 in c:\python27\lib\site-packages (from requests)
Given the more restrictive retdec API license, it's probably a good idea to include more details about the restrictions in the description so people using the plugin are aware of the additional restrictions. (non-commercial use only, governed by these terms: https://retdec.com/legal-info/)
everything loads fine, but the status hangs with no progress...or logs to indicate any errors.
Cloning and running BN with pyenv set to system (2.7.X) does not populate right click menu with option to decompile.
Any suggestions?
i am getting this error when i try to use this plugin. I tried upgrading python crypto and pyopenssl but that doesnt seem to be fixing the issue. I am running the latest version of binary ninja on ubuntu 16.04
Similar to issue #5 however stuck on the 'Decompiling function name with RetDec'
I've had a look through the code and i'm really not sure what is causing the issue.
Hello @hugsy,
I am one of the developers behind RetDec. In December 2017, we have open-sourced our decompiler. Its source code is now available on GitHub under the MIT license. RetDec supports all the three major operating systems (Linux, Windows, macOS), which allows users to build the decompiler on their PC and use it offline.
Due to the fact that anyone can now run RetDec on their machine and our lack of resources to keep the online decompilation service running (it has not been updated since 2017), we have decided to shut the service down. We have already stopped the web-based version of the service (see this announcement) and registrations. Soon, we will also stop the API-based decompilation service, which will render your plugin non-functional.
We just wanted to give you a heads up so you can e.g. insert a note into the README. From what we have found, there seems to be a Binary Ninja plugin that uses the offline version of RetDec. We have not evaluated it so we are not sure whether it works or how good it is, but we believe that it could maybe be used as a replacement.
Thank you for your work on the plugin.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.