Tartalomjegyzék

< Linux

Hex szerkesztő

hexedit

Telepítés:

# apt install hexedit

Használat:

$ hexedit program
00000000   7F 45 4C 46  02 01 01 00  00 00 00 00  00 00 00 00  .ELF............
00000010   03 00 3E 00  01 00 00 00  80 05 00 00  00 00 00 00  ..>.............
00000020   40 00 00 00  00 00 00 00  00 1A 00 00  00 00 00 00  @...............
00000030   00 00 00 00  40 00 38 00  09 00 40 00  1F 00 1E 00  ....@.8...@.....
00000040   06 00 00 00  05 00 00 00  40 00 00 00  00 00 00 00  ........@.......
00000050   40 00 00 00  00 00 00 00  40 00 00 00  00 00 00 00  @.......@.......
00000060   F8 01 00 00  00 00 00 00  F8 01 00 00  00 00 00 00  ................
00000070   08 00 00 00  00 00 00 00  03 00 00 00  04 00 00 00  ................
00000080   38 02 00 00  00 00 00 00  38 02 00 00  00 00 00 00  8.......8.......
00000090   38 02 00 00  00 00 00 00  1C 00 00 00  00 00 00 00  8...............
000000A0   1C 00 00 00  00 00 00 00  01 00 00 00  00 00 00 00  ................
000000B0   01 00 00 00  05 00 00 00  00 00 00 00  00 00 00 00  ................
000000C0   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  ................
000000D0   A4 08 00 00  00 00 00 00  A4 08 00 00  00 00 00 00  ................
000000E0   00 00 20 00  00 00 00 00  01 00 00 00  06 00 00 00  .. .............
000000F0   D8 0D 00 00  00 00 00 00  D8 0D 20 00  00 00 00 00  .......... .....
00000100   D8 0D 20 00  00 00 00 00  58 02 00 00  00 00 00 00  .. .....X.......
00000110   60 02 00 00  00 00 00 00  00 00 20 00  00 00 00 00  `......... .....
00000120   02 00 00 00  06 00 00 00  F0 0D 00 00  00 00 00 00  ................
00000130   F0 0D 20 00  00 00 00 00  F0 0D 20 00  00 00 00 00  .. ....... .....
---  main       --0x0/0x21C0---------------------------------------------------

Az F1 funkcióbillentyűvel megtekinthető a program kézikönyve. A kézikönyvből a „Q” billentyű lenyomásával lehetséges.

hexcurse

Telepítés:

apt install hexcurse

Indítás:

hexcurse

Ha indításkor betöltünk egy programot:

hexcurse programnev
┌00000000─────────────────────────────────────────────────┐^┌────────────────┐
│00000000 7F 45 4C 46 02 01 01 00 00 00 00 00 00 00 00 00 │◆│.ELF............│
│00000010 03 00 3E 00 01 00 00 00 80 05 00 00 00 00 00 00 │▒│..>.............│
│00000020 40 00 00 00 00 00 00 00 00 1A 00 00 00 00 00 00 │▒│@...............│
│00000030 00 00 00 00 40 00 38 00 09 00 40 00 1F 00 1E 00 │▒│....@.8...@.....│
│00000040 06 00 00 00 05 00 00 00 40 00 00 00 00 00 00 00 │▒│........@.......│
│00000050 40 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 │▒│@.......@.......│
│00000060 F8 01 00 00 00 00 00 00 F8 01 00 00 00 00 00 00 │▒│................│
│00000070 08 00 00 00 00 00 00 00 03 00 00 00 04 00 00 00 │▒│................│
│00000080 38 02 00 00 00 00 00 00 38 02 00 00 00 00 00 00 │▒│8.......8.......│
│00000090 38 02 00 00 00 00 00 00 1C 00 00 00 00 00 00 00 │▒│8...............│
│000000A0 1C 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 │▒│................│
│000000B0 01 00 00 00 05 00 00 00 00 00 00 00 00 00 00 00 │▒│................│
│000000C0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │▒│................│
│000000D0 A4 08 00 00 00 00 00 00 A4 08 00 00 00 00 00 00 │▒│................│
│000000E0 00 00 20 00 00 00 00 00 01 00 00 00 06 00 00 00 │▒│.. .............│
│000000F0 D8 0D 00 00 00 00 00 00 D8 0D 20 00 00 00 00 00 │▒│.......... .....│
│00000100 D8 0D 20 00 00 00 00 00 58 02 00 00 00 00 00 00 │▒│.. .....X.......│
│00000110 60 02 00 00 00 00 00 00 00 00 20 00 00 00 00 00 │▒│`......... .....│
└─────────────────────────────────────────────────────────┘┴└────────────────┘
  Help     Save     Open         Goto     Find       Hex Addr Hex Edit   Quit  

A program felülete két részből áll, bal és jobb oldal. Baloldalon az egyes bájtok kódja szerepel, jobboldalon a bájt megjelenése.

Billentyűkombinációk:

ht

Telepítés:

apt install ht

Indítás:

hte

ncurses-hexedit

Telepítés:

apt install ncurses-hexedit

Indítás:

hexeditor

dhex

Telepítés:

apt install dhex

Indítás:

dhex

wxhexeditor

Telepítés:

apt install wxhexeditor

Bless

Telepítés:

apt install bless

hexdump

A hexdump nem szerkesztő, csak megnézhetjük a bemenő adatokat hex formában. A hexdump a bsdmainutils csomag része.

echo 123 | hexdump

shed

apt install shed
shed vmi.txt