[[oktatas:linux|< Linux]]
====== Hex szerkesztő ======
* **Szerző:** Sallai András
* Copyright (c) 2017, Sallai András
* Szerkesztve: 2017, 2018
* Licenc: [[https://creativecommons.org/licenses/by-sa/4.0/|CC BY-SA 4.0]]
* Web: https://szit.hu
===== 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:
* F1 -- Segítség
* Ctrl+S -- Mentés
* Ctrl+O -- Megnyitás
* Ctrl+Q -- Kilépés
===== ht =====
Telepítés:
apt install ht
Indítás:
hte
===== ncurses-hexedit =====
* CLI
Telepítés:
apt install ncurses-hexedit
Indítás:
hexeditor
===== dhex =====
* CLI
Telepítés:
apt install dhex
Indítás:
dhex
===== wxhexeditor =====
* GUI
Telepítés:
apt install wxhexeditor
===== Bless =====
* GUI
Telepítés:
apt install bless
===== hexdump =====
* CLI
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 =====
* CLI
apt install shed
shed vmi.txt