Question: what are the elf magic numbers?
Answer: The ELF header is 52 or 64 bytes long for 32-bit and 64-bit binaries respectively. 0x7F followed by ELF ( 45 4c 46 ) in ASCII; these four bytes constitute the magic number. This byte is set to either 1 or 2 to signify 32- or 64-bit format, respectively.