MCPcopy Create free account
hub / github.com/AutoRecon/AutoRecon / WhatWeb

Class WhatWeb

autorecon/default-plugins/whatweb.py:3–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1from autorecon.plugins import ServiceScan
2
3class 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')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected