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

Class NmapHTTP

autorecon/default-plugins/nmap-http.py:3–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1from autorecon.plugins import ServiceScan
2
3class NmapHTTP(ServiceScan):
4
5 def __init__(self):
6 super().__init__()
7 self.name = "Nmap HTTP"
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 self.add_pattern('Server: ([^\n]+)', description='Identified HTTP Server: {match1}')
14 self.add_pattern('WebDAV is ENABLED', description='WebDAV is enabled')
15
16 async def run(self, service):
17 await service.execute('nmap {nmap_extra} -sV -p {port} --script="banner,(http* or ssl*) and not (brute or broadcast or dos or external or http-slowloris* or fuzzer)" -oN "{scandir}/{protocol}_{port}_{http_scheme}_nmap.txt" -oX "{scandir}/xml/{protocol}_{port}_{http_scheme}_nmap.xml" {address}')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected