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

Class NBTScan

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

Source from the content-addressed store, hash-verified

1from autorecon.plugins import ServiceScan
2
3class NBTScan(ServiceScan):
4
5 def __init__(self):
6 super().__init__()
7 self.name = 'nbtscan'
8 self.tags = ['default', 'safe', 'netbios', 'active-directory']
9
10 def configure(self):
11 self.match_service_name(['^smb', '^microsoft\-ds', '^netbios'])
12 self.match_port('udp', 137)
13 self.run_once(True)
14
15 async def run(self, service):
16 if service.target.ipversion == 'IPv4':
17 await service.execute('nbtscan -rvh {ipaddress} 2>&1', outfile='nbtscan.txt')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected