akn-cybersec/binja ? reverse-engineered prompt
Reverse engineered prompt
Build me a lightweight command line tool for inspecting and patching ELF binaries on Linux.
I want to point it at a binary and get useful reverse engineering info fast, like basic file details, sections and segments, function symbols, strings, protection checks like PIE, NX, RELRO, and stack canary, plus disassembly for a function or address. It should also be able to find cross references in the code, search for simple ROP gadgets, and patch bytes at a virtual address, making a backup before writing anything to disk.
Please make it work both as an interactive REPL and as a one shot command mode for quick scripting. Keep it simple and focused on x86 and x86 64 ELF files, and if you need to check current docs for anything like Capstone or build steps, go ahead and look them up online.
Are you gonna build this?
make sure you review the code using coderabbit