Ejemplo n.º 1
0
    def run(self):
        result = Utils.grep(regex=self.REGEX, source=self.ANALYSIS.LOCAL_CLASS_DUMP, working_path=self.ANALYSIS.LOCAL_WORKING_FOLDER)
        result[self.ANALYSIS.LOCAL_WORKING_BIN] = Utils.strings_grep_command(source_file=self.ANALYSIS.LOCAL_WORKING_BIN, command='-E "{regex}"'.format(regex=self.REGEX))
        if not result[self.ANALYSIS.LOCAL_WORKING_BIN]:
            result.pop(self.ANALYSIS.LOCAL_WORKING_BIN)

        if result:
            self.REPORT = True
Ejemplo n.º 2
0
 def run(self):
     result = Utils.strings_grep_command(
         source_file=self.ANALYSIS.LOCAL_WORKING_BIN,
         command='-E "{regex}"'.format(regex=self.REGEX))
     if result:
         self.REPORT = True
         self.DETAILS = self.ANALYSIS.UTILS.dump_log(
             self.ANALYSIS.APP_INFO['CFBundleExecutable'])
Ejemplo n.º 3
0
    def run(self):
        urls = Utils.strings_grep_command(source_file=self.ANALYSIS.LOCAL_WORKING_BIN, command='-E "{regex}"'.format(regex=self.REGEX))
        result = ''
        for finding in urls:
            if any(ignore in finding['code'] for ignore in IGNORE) or any(e == finding['code'] for e in ['http://', 'https://']):
                continue
            result += '* {url}\n'.format(url=finding['code'])

        if result:
            self.REPORT  = True
            self.DETAILS = result
Ejemplo n.º 4
0
    def run(self):
        result = Utils.grep(regex=self.REGEX,
                            source=self.ANALYSIS.LOCAL_CLASS_DUMP,
                            working_path=self.ANALYSIS.LOCAL_WORKING_FOLDER,
                            ignore_case=True)
        result[self.ANALYSIS.LOCAL_WORKING_BIN] = Utils.strings_grep_command(
            source_file=self.ANALYSIS.LOCAL_WORKING_BIN,
            command='-iE "{regex}"'.format(regex=self.REGEX))
        if not result[self.ANALYSIS.LOCAL_WORKING_BIN]:
            result.pop(self.ANALYSIS.LOCAL_WORKING_BIN)

        self.REPORT = True

        if result:
            self.ISSUE_TITLE = 'Application Performs Jailbreak Detection'
            self.FINDINGS = 'The Team found that the application implemented jailbreak detection mechanisms:\n'
            self.DETAILS = Utils.grep_details(
                result, working_path=self.ANALYSIS.LOCAL_WORKING_FOLDER)