Ejemplo n.º 1
0
    def clean_multi_gobuster(self, command):
        final_output = utils.replace_argument(
            self.options, "$WORKSPACE/vhosts/vhost-$OUTPUT.txt")
        # simple hack here
        raw_outputs = utils.list_files(final_output + '/../raw/',
                                       '-gobuster.txt')
        utils.join_files(raw_outputs, final_output)
        # content = final_output
        content = utils.just_read(final_output)
        if content:
            result = utils.regex_strip("\\s\\(Status.*", content)

        cleaned_output = utils.just_write(final_output,
                                          result.replace('Found: ', ''))
        if cleaned_output:
            utils.check_output(command.get('cleaned_output'))
Ejemplo n.º 2
0
 def conclude(self):
     outputs = utils.get_output_path(self.commands)
     # print(outputs)
     final_output = utils.replace_argument(
         self.options, "$WORKSPACE/subdomain/final-$OUTPUT.txt")
     # print(final_output)
     outputs = utils.join_files(outputs, final_output)
     utils.check_output(final_output)
     summary.push_with_file(self.options, final_output)
Ejemplo n.º 3
0
    def get_subdomains(self, command):
        utils.print_info("Joining all previous subdomain")
        final_path = command.get('requirement')
        if utils.not_empty_file(final_path):
            return
        subdomain_modules = [
            'SubdomainScanning', 'PermutationScan', 'VhostScan'
        ]
        needed_reports = []
        # get reports
        reports = report.get_report_path(self.options, module=False)
        for rep in reports:
            if rep.get('module') in subdomain_modules and 'final' in rep.get(
                    'note'):
                if utils.not_empty_file(rep.get('report_path')):
                    needed_reports.append(rep.get('report_path'))

        utils.join_files(needed_reports, final_path)
        if utils.not_empty_file(final_path):
            utils.check_output(final_path)
Ejemplo n.º 4
0
 def conclude(self):
     outputs = report.get_output_path(self.commands)
     final_output = report.get_report_path(self.options, get_final=True)
     outputs = utils.join_files(outputs, final_output)
     utils.check_output(final_output)
 def clean_linkfinder(self, command):
     final_output = command.get('cleaned_output')
     # simple hack here
     raw_outputs = utils.list_files(final_output + '/../raw/', '.txt')
     utils.join_files(raw_outputs, final_output)
     utils.check_output(final_output)