Xz Backdoor, Cybersecurity.
root, dirs, files in os.walk(path): for file in files: yield os.path.join(root, file) def is_elf(file): try: with open(file, "rb") as f: data = f.read(4) except: return False return data == b"\x7FELF" def get_ifunc_symbols(file_path): with open(file_path, 'rb') as f: elffile = ELFFile(f)