도전2022

readelf 명령어 본문

작업/work2014

readelf 명령어

hotdigi 2014. 1. 10. 19:43

리눅스 바이너리의 머신 정보를 확인 하기 위해서는 readelf 명령을 이용하자. 

(간만에 다시 리눅스 작업 중이라 기억이 안나서 다시 정리 시작 .ㅠ.ㅠ)


readlf -h (바이너리명) 



readelf -h test

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:                           ARM

  Version:                           0x1

  Entry point address:               0x8311

  Start of program headers:          52 (bytes into file)

  Start of section headers:          4496 (bytes into file)

  Flags:                             0x5000002, has entry point, Version5 EABI

  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:         30

  Section header string table index: 27