"""Independent ELF64 little-endian note oracle for the fixed Linux corpus.""" import argparse import hashlib import json from pathlib import Path import struct def inspect(path): before = path.stat() data = path.read_bytes() header = struct.unpack_from('<16sHHIQQQIHHHHHH', data) ident, kind, machine, version, _, phoff, shoff, _, _, phsize, phnum, shsize, shnum, names_index = header assert ident[:7] == b'\x7fELF\x02\x01\x01' and version == 1 and kind == 3 assert phsize == 56 and shsize == 64 and 0 < phnum < 65535 and 0 < shnum < 65535 sections = [struct.unpack_from('