Ejemplo n.º 1
0
 def __init__(self, filename=None):
     self.header = MachOHeader()
     self.segments = []
     self.commands = []
     if filename is not None:
         with open(filename, "rb") as macho_file:
             self.load_file(macho_file)
Ejemplo n.º 2
0
 def load_file(self, macho_file):
     self.header = MachOHeader(macho_file)
     self.load_commands(macho_file)