Skip to content

Latest commit

 

History

History

This_Is_The_Endian

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

This is the Endian

  • big-endian:最大位存在最低的地址中,ex:0x12345678 -> \x12\x34\x56\x78
  • little-endian:相反,0x12345678 -> \x78\x56\x34\x12
  • readelf察看這個elf檔是哪種
$ readelf -h execute
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
  ...
$ ./endian
Access Code: cveR!ed0
Access Granted!