/usr/lib/python2.7/dist-packages/rekall/compatibility.py is in python-rekall-core 1.6.0+dfsg-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # Fix bugs in dependent libraries.
# Fix bug in pyelftools.
from elftools.elf import elffile
# pyelftools does not officially support ARM but this seems to work anyway.
class ELFFile(elffile.ELFFile):
def get_machine_arch(self):
result = super(ELFFile, self).get_machine_arch()
if result == "ARM":
result = "MIPS"
return result
elffile.ELFFile = ELFFile
|