예제 #1
0
    def display(self, before=''):
        name = ''
        if self.cmd == LC_LOAD_DYLIB:
            name = 'LC_LOAD_DYLIB'
        elif self.cmd == LC_LOAD_WEAK_DYLIB:
            name = 'LC_LOAD_WEAK_DYLIB'
        elif self.cmd == LC_REEXPORT_DYLIB:
            name = 'LC_REEXPORT_DYLIB'
        elif self.cmd == LC_ID_DYLIB:
            name = 'LC_ID_DYLIB'
        else:
            raise Exception('FUUUUUUUUU')

        print before + green("[+]")+" %s" % name
        print before + "\t- name : %s" % self.name
        print before + "\t- timestamp : %s" % datetime.fromtimestamp(self.timestamp).strftime('%Y-%m-%d %H:%M:%S')
        print before + "\t- current_version : %s" % int32_to_version(self.current_version)
        print before + "\t- compatibility_version : %s" % int32_to_version(self.compatibility_version)
예제 #2
0
    def display(self, before=''):
        name = ''
        if self.cmd == LC_LOAD_DYLIB:
            name = 'LC_LOAD_DYLIB'
        elif self.cmd == LC_LOAD_WEAK_DYLIB:
            name = 'LC_LOAD_WEAK_DYLIB'
        elif self.cmd == LC_REEXPORT_DYLIB:
            name = 'LC_REEXPORT_DYLIB'
        elif self.cmd == LC_ID_DYLIB:
            name = 'LC_ID_DYLIB'
        else:
            raise Exception('FUUUUUUUUU')

        print before + green("[+]") + " %s" % name
        print before + "\t- name : %s" % self.name
        print before + "\t- timestamp : %s" % datetime.fromtimestamp(
            self.timestamp).strftime('%Y-%m-%d %H:%M:%S')
        print before + "\t- current_version : %s" % int32_to_version(
            self.current_version)
        print before + "\t- compatibility_version : %s" % int32_to_version(
            self.compatibility_version)
 def display(self, before=''):
     print before + green("[+]")+" %s" % ("LC_VERSION_MIN_MACOSX" if self.cmd == LC_VERSION_MIN_MACOSX else "LC_VERSION_MIN_IPHONEOS")
     print before + "\t- version : %s" % int32_to_version(self.version)
     print before + "\t- sdk : %s" % int32_to_version(self.sdk)