(self)
| 13 | self.tags = ['default', 'safe', 'long', 'http'] |
| 14 | |
| 15 | def configure(self): |
| 16 | self.add_choice_option('tool', default='feroxbuster', choices=['feroxbuster', 'gobuster', 'dirsearch', 'ffuf', 'dirb'], help='The tool to use for directory busting. Default: %(default)s') |
| 17 | self.add_list_option('wordlist', default=[os.path.join(config['data_dir'], 'wordlists', 'dirbuster.txt')], help='The wordlist(s) to use when directory busting. Separate multiple wordlists with spaces. Default: %(default)s') |
| 18 | self.add_option('threads', default=10, help='The number of threads to use when directory busting. Default: %(default)s') |
| 19 | self.add_option('ext', default='txt,html,php,asp,aspx,jsp', help='The extensions you wish to fuzz (no dot, comma separated). Default: %(default)s') |
| 20 | self.add_true_option('recursive', help='Enables recursive searching (where available). Warning: This may cause significant increases to scan times. Default: %(default)s') |
| 21 | self.add_option('extras', default='', help='Any extra options you wish to pass to the tool when it runs. e.g. --dirbuster.extras=\'-s 200,301 --discover-backup\'') |
| 22 | self.match_service_name('^http') |
| 23 | self.match_service_name('^nacn_http$', negative_match=True) |
| 24 | |
| 25 | def check(self): |
| 26 | tool = self.get_option('tool') |
nothing calls this directly
no test coverage detected