a b c d e f g h i
New member
elf- readelf and hexedit
קיבלתי פלט של hexedit על קובץ elf ואני אמור לפענח משם נתונים.
איך עושים זאת?
אני אתן דוגמא לקובץ אחר שהפעלתי עליו hexedit ו- readelf , אבל לא ברור לי מה הקשר בין שניהם:
(גם אם אין לכם כוח להסתכל על הדוגמא הספציפית, אשמח לדעת בכללי איך ממירים hexedit למשהו מובן?)
ELF Header:
Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
Machine: Intel 80386
Version: 0x1
Entry point address: 0x80487c0
Start of program headers: 52 (bytes into file)
Start of section headers: 14976 (bytes into file)
Flags: 0x0
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 9
Size of section headers: 40 (bytes)
Number of section headers: 37
Section header string table index: 34
Section Headers:
[Nr] Name Type Addr Off Size ES Flg Lk Inf Al
[ 0] NULL 00000000 000000 000000 00 0 0 0
[ 1] .interp PROGBITS 08048154 000154 000013 00 A 0 0 1
[ 2] .note.ABI-tag NOTE 08048168 000168 000020 00 A 0 0 4
[ 3] .note.gnu.build-i NOTE 08048188 000188 000024 00 A 0 0 4
.......................
00000000 7F 45 4C 46 01 01 01 00 00 00 00 00 00 00 00 00 02 00 03 00 01 00 00 00 C0 87 04 08 34 00 00 00 .ELF........................4...
00000020 80 3A 00 00 00 00 00 00 34 00 20 00 09 00 28 00 25 00 22 00 06 00 00 00 34 00 00 00 34 80 04 08 .:......4. ...(.%.".....4...4...
00000040 34 80 04 08 20 01 00 00 20 01 00 00 05 00 00 00 04 00 00 00 03 00 00 00 54 01 00 00 54 81 04 08 4... ... ...............T...T...
00000060 54 81 04 08 13 00 00 00 13 00 00 00 04 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 80 04 08 T...............................
00000080 00 80 04 08 B8 1C 00 00 B8 1C 00 00 05 00 00 00 00 10 00 00 01 00 00 00 14 1F 00 00 14 AF 04 08 ................................
000000A0 14 AF 04 08 58 01 00 00 64 01 00 00 06 00 00 00 00 10 00 00 02 00 00 00 28 1F 00 00 28 AF 04 08 ....X...d...............(...(...
000000C0 28 AF 04 08 C8 00 00 00 C8 00 00 00 06 00 00 00 04 00 00 00 04 00 00 00 68 01 00 00 68 81 04 08 (.......................h...h...
000000E0 68 81 04 08 44 00 00 00 44 00 00 00 04 00 00 00 04 00 00 00 50 E5 74 64 DC 19 00 00 DC 99 04 08 h...D...D...........P.td........
00000100 DC 99 04 08 8C 00 00 00 8C 00 00 00 04 00 00 00 04 00 00 00 51 E5 74 64 00 00 00 00 00 00 00 00 ....................Q.td........
00000120 00 00 00 00 00 00 00 00 00 00 00 00 06 00 00 00 04 00 00 00 52 E5 74 64 14 1F 00 00 14 AF 04 08 ....................R.td........
.....................
קיבלתי פלט של hexedit על קובץ elf ואני אמור לפענח משם נתונים.
איך עושים זאת?
אני אתן דוגמא לקובץ אחר שהפעלתי עליו hexedit ו- readelf , אבל לא ברור לי מה הקשר בין שניהם:
(גם אם אין לכם כוח להסתכל על הדוגמא הספציפית, אשמח לדעת בכללי איך ממירים hexedit למשהו מובן?)
ELF Header:
Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
Machine: Intel 80386
Version: 0x1
Entry point address: 0x80487c0
Start of program headers: 52 (bytes into file)
Start of section headers: 14976 (bytes into file)
Flags: 0x0
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 9
Size of section headers: 40 (bytes)
Number of section headers: 37
Section header string table index: 34
Section Headers:
[Nr] Name Type Addr Off Size ES Flg Lk Inf Al
[ 0] NULL 00000000 000000 000000 00 0 0 0
[ 1] .interp PROGBITS 08048154 000154 000013 00 A 0 0 1
[ 2] .note.ABI-tag NOTE 08048168 000168 000020 00 A 0 0 4
[ 3] .note.gnu.build-i NOTE 08048188 000188 000024 00 A 0 0 4
.......................
00000000 7F 45 4C 46 01 01 01 00 00 00 00 00 00 00 00 00 02 00 03 00 01 00 00 00 C0 87 04 08 34 00 00 00 .ELF........................4...
00000020 80 3A 00 00 00 00 00 00 34 00 20 00 09 00 28 00 25 00 22 00 06 00 00 00 34 00 00 00 34 80 04 08 .:......4. ...(.%.".....4...4...
00000040 34 80 04 08 20 01 00 00 20 01 00 00 05 00 00 00 04 00 00 00 03 00 00 00 54 01 00 00 54 81 04 08 4... ... ...............T...T...
00000060 54 81 04 08 13 00 00 00 13 00 00 00 04 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 80 04 08 T...............................
00000080 00 80 04 08 B8 1C 00 00 B8 1C 00 00 05 00 00 00 00 10 00 00 01 00 00 00 14 1F 00 00 14 AF 04 08 ................................
000000A0 14 AF 04 08 58 01 00 00 64 01 00 00 06 00 00 00 00 10 00 00 02 00 00 00 28 1F 00 00 28 AF 04 08 ....X...d...............(...(...
000000C0 28 AF 04 08 C8 00 00 00 C8 00 00 00 06 00 00 00 04 00 00 00 04 00 00 00 68 01 00 00 68 81 04 08 (.......................h...h...
000000E0 68 81 04 08 44 00 00 00 44 00 00 00 04 00 00 00 04 00 00 00 50 E5 74 64 DC 19 00 00 DC 99 04 08 h...D...D...........P.td........
00000100 DC 99 04 08 8C 00 00 00 8C 00 00 00 04 00 00 00 04 00 00 00 51 E5 74 64 00 00 00 00 00 00 00 00 ....................Q.td........
00000120 00 00 00 00 00 00 00 00 00 00 00 00 06 00 00 00 04 00 00 00 52 E5 74 64 14 1F 00 00 14 AF 04 08 ....................R.td........
.....................