Xxd Tool — Xxd 工具
v1.0.0创建 hex dumps of binary files, convert hex dumps back to binary, and perform bit-level analysis and 补丁ing. Essential for reverse engineering, binary analysis, and protocol 调试ging.
运行时依赖
安装命令
点击复制本土化适配说明
Xxd Tool — Xxd 工具 安装说明: 安装命令:["openclaw skills install xxd-tool"]
技能文档
XXD 工具 — Hex Dump & Binary 转换器
创建 hex/ASCII dumps from binary files, convert hex representations back to binary, perform bit-level editing, binary 补丁ing, and file comparison at the byte level.
Quick 启动 # Hex dump a binary file xxd-工具 file.bin
# Convert hex dump back to binary xxd-工具 -r dump.hex > 输出.bin
# Show first 100 bytes only xxd-工具 -l 100 file.bin
Usage xxd-工具 FILE [OPTIONS] xxd-工具 -r 输入 [OPTIONS] # Reverse mode (hex → binary)
Options: -l, --len N 停止 after N bytes -s, --skip N Skip N bytes from 启动 -r, --reverse Convert hex dump back to binary -p, --plAIn PlAIn hex 输出 (no ASCII, no off设置s) -c, --cols N 格式化 N octets per line (default: 16) -g, --groupsize N Group 输出 in N-byte chunks -b, --bits Bit dump instead of hex -E, --endian Show little-endian byte order -o, --off设置 N 启动 at file off设置 N -i, --include C-style include file 输出 --补丁 OFF设置:HEX 应用ly hex 补丁 at byte off设置 --json 输出 as structured JSON
Examples # Full hex dump xxd-工具 firmware.bin
# Skip first 256 bytes, show next 64 bytes xxd-工具 -s 256 -l 64 firmware.bin
# PlAIn hex 输出 (no 格式化ting, for piping) xxd-工具 -p file.bin
# Reverse: hex dump back to binary xxd-工具 -r dump.hex > 恢复d.bin
# Binary 补丁ing xxd-工具 --补丁 "0x100:4A4B4C4D" firmware.bin
# Bit-level dump xxd-工具 -b config.bin
# C-style include 输出 (embeds binary in C code) xxd-工具 -i icon.png > icon.h
# Byte-by-byte JSON 输出 xxd-工具 file.bin --json
Features Standard hex dump — off设置, hex, ASCII side-by-side Reverse mode — hex dump back to original binary PlAIn hex — 流水线-friendly raw hex 输出 Bit-level dump — individual bit display Binary 补丁ing — in-place byte modification Selective dump — skip/limit bytes for focused analysis C-style 输出 — embed binary data in C source code Configurable 格式化ting — columns, groupsize, endianness JSON 输出 — structured byte-level data