Beispiel #1
0
    def run(self):
        files = self.ANALYSIS.UTILS.run_on_ios('find {data}'.format(data=self.ANALYSIS.IOS_DATA_PATH))[0].split('\r\n')
        vfiles = []
        for f in files:
            if f and not Utils.ignored_path(f) and not Utils.ignored_extension(f):
                protection = self.ANALYSIS.UTILS.dump_backup_flag(f)
                if protection and '0' in protection:
                    vfiles += ['{file} ({prot})\n'.format(file=f, prot=protection.replace('\r\n', ''))]

        if vfiles:
            self.DETAILS = '* {details}'.format(details='* '.join(vfiles))
            self.REPORT  = True
Beispiel #2
0
    def run(self):
        files = self.ANALYSIS.UTILS.run_on_ios(
            'find {app} {data} -type f'.format(
                app=self.ANALYSIS.APP['Path'],
                data=self.ANALYSIS.IOS_DATA_PATH))[0].split('\r\n')
        vfiles = []
        for f in files:
            if f and not Utils.ignored_path(f) and not Utils.ignored_extension(
                    f):
                protection = self.ANALYSIS.UTILS.dump_file_protect(f)
                if protection and 'NSFileProtectionComplete' not in protection:
                    vfiles += [
                        '{file} ({prot})\n'.format(file=f,
                                                   prot=protection.replace(
                                                       '\r\n', ''))
                    ]

        if vfiles:
            self.DETAILS = '* {details}'.format(details='* '.join(vfiles))
            self.REPORT = True