I have been having this for a while now, so I am sharing this out.
C:\>hexv
HexViewer A command line Hex Viewing Utility
(c) Spark (spark@mvps.org), March 2004.
Syntax: hexv <filename> [options]
(Default - Displays 1244872 lines in byte format)
Options:
-byte Show content as hex bytes (default)
-word Show content as hex words
-dword Show content as hex dwords
@<int> Displays contents from given offset
@x<hex> Displays contents from given hex offset
-lines:<int> Displays specified number of lines
-all Displays the whole file
Other usage:
-ascii Displays the ASCII table
-help Show this help
/? Show this help
Dedicated to all the frustrating times when I just wanted a
hex dump and had no option
I have written much grander hex viewers and all sorts of other viewers in the past, but this little thing stuck on due to its simplicity.
C:\>hexv mmc.exe
0000:0000│ 4D 5A 90 00 03 00 00 00 │ 04 00 00 00 FF FF 00 00 │ MZÉ▒♥▒▒▒│♦▒▒▒ ▒▒
0000:0010│ B8 00 00 00 00 00 00 00 │ 40 00 00 00 00 00 00 00 │ ╕▒▒▒▒▒▒▒│@▒▒▒▒▒▒▒
0000:0020│ 00 00 00 00 00 00 00 00 │ 00 00 00 00 00 00 00 00 │ ▒▒▒▒▒▒▒▒│▒▒▒▒▒▒▒▒
0000:0030│ 00 00 00 00 00 00 00 00 │ 00 00 00 00 08 01 00 00 │ ▒▒▒▒▒▒▒▒│▒▒▒▒▒☺▒▒
0000:0040│ 0E 1F BA 0E 00 B4 09 CD │ 21 B8 01 4C CD 21 54 68 │ ♫▼║♫▒┤▒═│!╕☺L═!Th
0000:0050│ 69 73 20 70 72 6F 67 72 │ 61 6D 20 63 61 6E 6E 6F │ is progr│am canno
C:\>hexv mmc.exe -word
0000:0000 5A4D 0090 0003 0000 | 0004 0000 FFFF 0000
0000:0008 00B8 0000 0000 0000 | 0040 0000 0000 0000
0000:0010 0000 0000 0000 0000 | 0000 0000 0000 0000
0000:0018 0000 0000 0000 0000 | 0000 0000 0108 0000
0000:0020 1F0E 0EBA B400 CD09 | B821 4C01 21CD 6854
C:\>hexv mmc.exe -dword
0000:0000 00905A4D 00000003 | 00000004 0000FFFF
0000:0004 000000B8 00000000 | 00000040 00000000
0000:0008 00000000 00000000 | 00000000 00000000
0000:000C 00000000 00000000 | 00000000 00000108
0000:0010 0EBA1F0E CD09B400 | 4C01B821 685421CD
0000:0014 70207369 72676F72 | 63206D61 6F6E6E61
0000:0018 65622074 6E757220 | 206E6920 20534F44
C:\>hexv mmc.exe @x40
0000:0060│ 74 20 62 65 20 72 75 6E │ 20 69 6E 20 44 4F 53 20 │ t be run│ in DOS
0000:0070│ 6D 6F 64 65 2E 0D 0D 0A │ 24 00 00 00 00 00 00 00 │ mode.▒▒▒│$▒▒▒▒▒▒▒
0000:0080│ 05 5E C8 CB 41 3F A6 98 │ 41 3F A6 98 41 3F A6 98 │ ♣^╚╦A?ªÿ│A?ªÿA?ªÿ
Finally something unrelated –
C:\>hexv -ascii
000 x00 = ( ) │ 001 x01 = (☺) │ 002 x02 = (☻) │ 003 x03 = (♥)
004 x04 = (♦) │ 005 x05 = (♣) │ 006 x06 = (♠) │ 007 x07 = bell
008 x08 = bksp │ 009 x09 = tab │ 010 x0A = LF │ 011 x0B = (♂)
012 x0C = (♀) │ 013 x0D = CR │ 014 x0E = (♫) │ 015 x0F = (☼)
016 x10 = (►) │ 017 x11 = (◄) │ 018 x12 = (↕) │ 019 x13 = (‼)
020 x14 = (¶) │ 021 x15 = (§) │ 022 x16 = (▬) │ 023 x17 = (↨)
024 x18 = (↑) │ 025 x19 = (↓) │ 026 x1A = (→) │ 027 x1B = (←)
As always download binaries and source
Remember Me
a@href@title, strike
Powered by: newtelligence dasBlog 2.0.7226.0
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
© Copyright 2009, Roshan James
E-mail