(self)
| 9 | self.tags = ['default', 'safe', 'active-directory'] |
| 10 | |
| 11 | def configure(self): |
| 12 | self.add_choice_option('tool', default=('enum4linux-ng' if which('enum4linux-ng') else 'enum4linux'), choices=['enum4linux-ng', 'enum4linux'], help='The tool to use for doing Windows and Samba enumeration. Default: %(default)s') |
| 13 | self.match_service_name(['^ldap', '^smb', '^microsoft\-ds', '^netbios']) |
| 14 | self.match_port('tcp', [139, 389, 445]) |
| 15 | self.match_port('udp', 137) |
| 16 | self.run_once(True) |
| 17 | |
| 18 | def check(self): |
| 19 | tool = self.get_option('tool') |
nothing calls this directly
no test coverage detected