| 1 | from autorecon.plugins import ServiceScan |
| 2 | |
| 3 | class WhatWeb(ServiceScan): |
| 4 | |
| 5 | def __init__(self): |
| 6 | super().__init__() |
| 7 | self.name = "whatweb" |
| 8 | self.tags = ['default', 'safe', 'http'] |
| 9 | |
| 10 | def configure(self): |
| 11 | self.match_service_name('^http') |
| 12 | self.match_service_name('^nacn_http$', negative_match=True) |
| 13 | |
| 14 | async def run(self, service): |
| 15 | if service.protocol == 'tcp' and service.target.ipversion == 'IPv4': |
| 16 | await service.execute('whatweb --color=never --no-errors -a 3 -v {http_scheme}://{address}:{port} 2>&1', outfile='{protocol}_{port}_{http_scheme}_whatweb.txt') |
nothing calls this directly
no outgoing calls
no test coverage detected