[feature] Add MCP server
For easy life ;)
Surely this is necessary and won't bloat the BCV?
Surely this is necessary and won't bloat the BCV?
I think nope
Decompilation done by AI looks better and doesn't crash because of aconst_null + athrow and other primitive tricks. But due to limitations of AI services and the models themselves, it won't handle massive disassembler listings caused whether by MBA spam, useless calls or other garbage.
It's interesting, but complicated. I can only see something like this as a plugin, as BCV is already bloated and needs to be cleaned up, IMO.
What do you think?
i doubt the idea was to use ai for decompilation.
ai for decompilation is probably be easily mislead by names of things and might randomly decide to not post something or output code which is just similar to what actually happens (maybe some parameters switched changes a legit function call from an exploit fuction call)?
the idea i think might more likely be to let ai see list of files and decompilation results of specific files/classes or methods it asks for.
AI is easily misled, you're right.
I see the use of AI as an aid to RE of certain method/class. “Please describe what the following thing does, and rename the variables and methods”.
The problem is that, firstly, the decompiler doesn't always produce the code, and secondly, that with a large context AI can start talking nonsense, forgetting the task, etc.
I think this would be a cool feature! I've been thinking about integrating something like this for a while now. Personally though, I'd like to see it as a main feature, not just an optional plugin. - If anyone is interested in adding this and needs collaborative help I'm always willing to help out - feel free to reach out with a PR, email, or nudge on discord if you need help implementing this.