Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
class LoadDataInCode(LoadCommand):
def __init__(self, data):
super().__init__(data)
self.data_offset = unpack("
def get_complete(self):
pass
class LoadMain(LoadCommand):
def __init__(self, data):
super().__init__(data)
self.entry_offset = unpack("
class LoadDylinker(LoadCommand):
def __init__(self, data):
super().__init__(data)
self.str_offset = unpack("
def get_complete(self):
pass
class LoadFunctionStarts(LoadCommand):
def __init__(self, data):
super().__init__(data)
self.data_offset = unpack("
def get_complete(self):
pass
class LoadUuid(LoadCommand):
def __init__(self, data):
super().__init__(data)
self.uuid = self.FR.read(16)
def get_complete(self):
pass
class LoadVersionMinMacosx(LoadCommand):
def __init__(self, data):
super().__init__(data)
self.version = unpack("
def get_complete(self):
pass
class LoadSegmentSplitInfo(LoadCommand):
def __init__(self, data):
super().__init__(data)
self.data_offset = unpack("
self.sections = []
if self.number_of_sections:
for i in range(self.number_of_sections):
self.sections.append(LoadSection64(self.FR.read(0x50)))
def __str__(self):
return (" SEG64:Seg Name %s, vmaddr 0x%X, vm size 0x%X, file offset 0x%X, file size 0x%X, max vp 0x%X, init vp 0x%X, section num %d, flags 0x%X" % (
self.segment_name, self.vm_address, self.vm_size, self.file_offset, self.file_size, self.maximum_vm_protection,
self.initial_vm_protection, self.number_of_sections, self.flags
))
def get_complete(self):
pass
class LoadSymtab(LoadCommand):
def __init__(self, data):
super().__init__(data)
self.symbol_table_offset = unpack("
self.module_table_offset = unpack("
class LoadVersionMinMacosx(LoadCommand):
def __init__(self, data):
super().__init__(data)
self.version = unpack("