19 Commits
Author SHA1 Message Date
pancake 9df012ee10 Fix release builds and SQL session cleanup 2026-11-06 04:00:53 +01:00
pancake 46f00dd9a1 Use native metadata APIs and literal SQL command dispatch 2026-10-05 10:27:07 +02:00
pancake 69e959d898 Prevent command expansion in SQL assembly and gadget searches 2026-10-05 10:27:07 +02:00
pancake 42ba6fabb7 Read type definitions and members from the native type database 2026-09-27 19:02:28 +02:00
pancake 489339db54 Use native APIs for analysis and runtime catalogs 2026-09-27 19:02:28 +02:00
pancake 4d3690a6fc Read symbols and composite tables through native binary APIs 2026-09-27 19:02:28 +02:00
pancake e68a24e15b Read bookmarks through native flag APIs 2026-09-27 19:02:28 +02:00
pancake 808f9bc83c Fix stale Make objects and migrate regression tests to r2r 2026-09-22 00:46:48 +08:00
Elias Bachaalany 528b22f41d Require exact function starts in scoped SQL queries 2026-09-21 18:19:47 +02:00
Elias Bachaalany 7c4b868c8f Refresh live library register and relocation tables 2026-09-21 18:04:15 +02:00
Elias Bachaalany ce0786a7a9 Replace project and type SQL wrappers with native commands 2026-09-21 18:00:25 +02:00
Elias Bachaalany 15da1ebba0 Derive SQL catalogs from the live schema 2026-09-21 17:57:31 +02:00
Elias Bachaalany 8769217bfa Render SQL results with native radare2 tables 2026-09-21 17:34:15 +02:00
Elias Bachaalany 1c5f4b8ae1 Fix flag self-renames and report refused command renames 2026-09-21 17:32:09 +02:00
Elias Bachaalany 2ea9853988 Add sqlj for JSON SQL script results 2026-09-21 17:23:25 +02:00
Elias Bachaalany ca934bf64a Remove CLI Tool Completely 2026-09-21 15:42:06 +02:00
Elias Bachaalany b7bda1601b Remove standalone http server, reuse r2 one 2026-09-21 14:56:27 +02:00
Elias Bachaalany 75d9f471ca Remove the standalone mcp support
- Dont dup r2mcp responsabilities
2026-09-19 03:30:36 +02:00
Elias Bachaalany 288bcaab43 r2xsql 0.0.1 - SQL interface for radare2
r2xsql exposes a radare2 analysis session as live SQL virtual tables: every
query re-issues the JSON form of the relevant r2 command (aflj, izj, axtj, ...)
against the current core, so results are never a stale dump. Reads are SELECTs;
annotation is ordinary SQL writes -- rename functions, set prototypes, comments,
flags, locals, types, bookmarks, patches -- and work saves back through
radare2's native project format.

Two interchangeable flavors over one SQL surface:
  - r2xsql       portable; drives radare2 over r2pipe, needs only the radare2
                 binary on PATH at runtime. Always built.
  - r2xsql-full  in-process (libr) build; also ships core_r2xsql, an in-r2
                 plugin that adds the `sql` command inside radare2. ABI-locked
                 to the radare2 it was built against.

~48 tables and 13 views span functions, blocks, instructions, xrefs, strings,
imports/exports, sections/segments, flags, comments, types, classes, relocs,
registers, syscalls, calling conventions, ROP gadgets, ESIL, and decompilation.
An always-on HTTP REST endpoint and an MCP server expose the same surface to
tooling and agents.

Build with CMake (both flavors, MCP, tests), or -- for the plugin alone -- a
radare2-native Makefile / meson build (plugin paths from `r2 -H`, radare2 via
pkg-config r_core). Agent skills for driving r2xsql live in
radareorg/radare2-skills.

Developed by Elias Bachaalany, in collaboration with the radare2 project (radareorg).
2026-08-12 13:28:52 -07:00