← 返回
未分类 中文

Xxd Tool

Create hex dumps of binary files, convert hex dumps back to binary, and perform bit-level analysis and patching. Essential for reverse engineering, binary an...
创建二进制文件的十六进制转储,将转储恢复为二进制,并进行位级分析与修补。适用于逆向工程、二进制分析等关键任务。
dinghaibin
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 339
下载
💾 0
安装
1
版本
#latest

概述

XXD Tool — Hex Dump & Binary Converter

Create hex/ASCII dumps from binary files, convert hex representations back to binary, perform bit-level editing, binary patching, and file comparison at the byte level.

Quick Start

# Hex dump a binary file
xxd-tool file.bin

# Convert hex dump back to binary
xxd-tool -r dump.hex > output.bin

# Show first 100 bytes only
xxd-tool -l 100 file.bin

Usage

xxd-tool FILE [OPTIONS]
xxd-tool -r INPUT [OPTIONS]  # Reverse mode (hex → binary)

Options:
  -l, --len N         Stop after N bytes
  -s, --skip N        Skip N bytes from start
  -r, --reverse       Convert hex dump back to binary
  -p, --plain         Plain hex output (no ASCII, no offsets)
  -c, --cols N        Format N octets per line (default: 16)
  -g, --groupsize N   Group output in N-byte chunks
  -b, --bits          Bit dump instead of hex
  -E, --endian        Show little-endian byte order
  -o, --offset N      Start at file offset N
  -i, --include       C-style include file output
  --patch OFFSET:HEX  Apply hex patch at byte offset
  --json              Output as structured JSON

Examples

# Full hex dump
xxd-tool firmware.bin

# Skip first 256 bytes, show next 64 bytes
xxd-tool -s 256 -l 64 firmware.bin

# Plain hex output (no formatting, for piping)
xxd-tool -p file.bin

# Reverse: hex dump back to binary
xxd-tool -r dump.hex > restored.bin

# Binary patching
xxd-tool --patch "0x100:4A4B4C4D" firmware.bin

# Bit-level dump
xxd-tool -b config.bin

# C-style include output (embeds binary in C code)
xxd-tool -i icon.png > icon.h

# Byte-by-byte JSON output
xxd-tool file.bin --json

Features

  • Standard hex dump — offset, hex, ASCII side-by-side
  • Reverse mode — hex dump back to original binary
  • Plain hex — pipeline-friendly raw hex output
  • Bit-level dump — individual bit display
  • Binary patching — in-place byte modification
  • Selective dump — skip/limit bytes for focused analysis
  • C-style output — embed binary data in C source code
  • Configurable formatting — columns, groupsize, endianness
  • JSON output — structured byte-level data

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-21 14:09 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Schedule Task

dinghaibin
在 Linux/Unix 系统上调度和运行周期性任务。适用于设置 cron 作业、定时备份、周期性数据同步、自动报告等场景。
★ 0 📥 393

Datetime Tool

dinghaibin
全面的日期时间操作工具包,支持多种格式、时区转换、日历计算、自然语言解析以及日期...
★ 0 📥 396

Automation Workflow

dinghaibin
创建并管理自动化工作流,以处理重复性任务。适用于需要安排周期性数据同步、链式API调用、设置触发动作等场景。
★ 0 📥 360