使用 hexdump dump 文件内容

名词解释

【dump】 dump 是指把文件的内容,每个字节用2位十六进制数来表示的方式。

缘由

最近看矢泽久雄的《How Program Works》,了解到 dump “exe文件”(恕我不知该如何将 dump 汉化)。然后在系统(Windows 7)中搜索,发现并不存在这么个东西。就在网上搜索,发现了 hexdump。

hexdump

【版本一】

这是一个 Windows 可执行文件,很小,说明如下:

HexDump

by Rich Pasco
Revised Thursday, November 11, 2004
Copyright © 2004 Richard Pasco

HexDump is a Windows command-line utility which reads a binary file and writes text file with a hexadecimal dump of its contents

License is free to end users, but I retain the copyright. This program is shared "as-is" without warranty, promise of support, or liability for consequences of its use.

Calling syntax

Command-line invocation is according to the syntax:

  hexdump filename  [/skip:n] [/keep:n] [/bare] > dumpfile.txt

Where:

   /skip:n   Offset where to begin dumping (prefix hex with $)
   /keep:n   Number of bytes to dump
   /bare   Omit headings

Installation

  1. Download and open hexdump.zip.
  2. Move hexdump.exe into any directory on your command PATH.
  3. Save hexdump.html (this file) for future reference.

[下载地址] http://pan.baidu.com/s/1kT6K7fp   密码: etxk

 【版本二】

这是一个C语言写的,但是我水平有限,真心不会用。会用的同学麻烦教教我~

[下载地址] http://sourceforge.net/projects/hexdump/

原文地址:https://www.cnblogs.com/xunzhiyou/p/4923374.html