data
Query radare2 data and memory — bytes, defined data, byte patterns, assembling/demangling a mnemonic or symbol name, strings, imports, entry points…
от radareorg★ 23 звезды на GitHub
Установить data в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
When to use
Pick this skill for non-code facts about the binary:
- printable strings the binary embeds (
strings) - mapped bytes and initialization state, or overwriting one byte directly (
bytes) - defined data symbols/strings (
data_items) - byte-pattern matches (
byte_search) - encoding an assembly mnemonic to bytes (
assemble), or finding where an assembled instruction occurs in the binary (search_asm) - demangling a C++/Rust/Swift/MSVC symbol name (
demangle) - reading a null-terminated string at an ARBITRARY address, not just an
address
strings' own detection heuristics flagged (read_cstr) - staging, committing, or undoing a revertible raw hex byte patch, either
from raw hex or an assembly mnemonic (
patches) - functions the binary imports from other libraries (
imports) - loader entry points and functions/symbols the binary exports (
entries) - the binary's relocation table (
relocs) - the binary's linked/imported library list (
libs) - top-level binary metadata: arch, bits, bintype, OS, … (
binary) - type definitions and members loaded by r2 (
types,types_members— see theconnectschema-catalog reference for the full column list)
For code structure (functions/blocks/instructions) use disassembly.
For cross-references between code and data, use xrefs.
Tables
| table | source | columns |
|---|---|---|
bytes |
omj + p8 + iSj |
addr, value, is_initialized — writable (value only) |
data_items |
isj + izj |
addr, name, data_type, size, value_repr, segment_name, is_string, is_initialized |
byte_search |
/xj + p8 |
addr, matched_hex, matched_bytes, size; hidden pattern/bounds |
assemble |
pa |
hex, bytes, size, error; hidden asm (required), addr |
search_asm |
/a |
addr, matched_hex; hidden asm (required), max_results |
demangle |
native r_bin_demangle |
demangled, error; hidden mangled (required), lang (optional) |
read_cstr |
pszj |
content, length, section, type, truncated, error; hidden addr (required), max_len (optional, default 128) |
patches |
wcj (write-cache) |
addr, size, original_bytes, patched_bytes, asm_text, committed — writable |
strings |
izj |
addr, length, section, type, content, paddr |
imports |
iij |
addr, ordinal, bind, type, name, module |
entries |
iej + iEj |
addr, size, type, bind, name |
relocs |
irj |
addr, paddr, type, ntype, name, demname, sym_vaddr, is_ifunc |
libs |
ilj |
name |
binary |
iIj + quick-counts |
key, value (key-value pairs) |
types |
tk* + tks |
ordinal (read-only), name, kind, size, format |
types_members |
tk* + tkj |
type/member names, kinds, layout, sizes, values |
Common queries
-- find every string containing "password" (case-insensitive)
SELECT addr, content FROM strings WHERE content LIKE '%password%';
-- ...and where to patch it on disk: addr is the VIRTUAL address, paddr the
-- file offset. They differ by the image base, so do not use one for the other.
SELECT printf('0x%x', addr) AS vaddr, paddr, content
FROM strings WHERE content LIKE '%password%';
-- binary type / arch / bits at a glance
SELECT key, value FROM binary
WHERE key IN ('bintype','arch','bits','os','class','endian');
-- imports grouped by library
SELECT module, COUNT(*) AS n
FROM imports
GROUP BY module ORDER BY n DESC;
-- crypto API surface
SELECT name, module FROM imports
WHERE name LIKE 'Crypt%' OR name LIKE '%AES%'
OR name LIKE '%RSA%' OR name LIKE 'BCrypt%';
-- network / IO surface
SELECT name, module FROM imports
WHERE module IN ('WS2_32.dll','WINHTTP.dll','WININET.dll','URLMON.dll');
-- entry points / exports (`entries`)
SELECT name, addr, type FROM entries ORDER BY name;
-- linked libraries
SELECT name FROM libs ORDER BY name;
-- relocations against a named import
SELECT printf('0x%x', addr) AS at, name, type FROM relocs WHERE name IS NOT NULL;
-- readable initialized bytes in a range
SELECT addr, value FROM bytes
WHERE addr >= 0x401000 AND addr < 0x401100 AND is_initialized = 1;
-- overwrite one byte directly and permanently (NOT staged -- see caveats)
UPDATE bytes SET value = 0x90 WHERE addr = 0x401000;
-- byte pattern (hex and `.` wildcard nibbles; optional `:mask`)
SELECT addr, matched_hex FROM byte_search
WHERE pattern = '4889' AND max_results = 20;
-- search_first(pat) recipe: first match only. max_results = 1 (not just
-- LIMIT 1) skips byte_search's own N+1 full-match re-read for every hit
-- after the first -- LIMIT 1 alone would still pay that cost for every hit,
-- since the generator collect
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash - 02
Read
FAQ
Что делает скилл data?
Query radare2 data and memory — bytes, defined data, byte patterns, assembling/demangling a mnemonic or symbol name, strings, imports, entry points, relocations, linked libraries, and binary metadata — via r2xsql.
Как установить скилл data?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл data запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…