| 1 | from autorecon.plugins import ServiceScan |
| 2 | |
| 3 | class SMBClient(ServiceScan): |
| 4 | |
| 5 | def __init__(self): |
| 6 | super().__init__() |
| 7 | self.name = "SMBClient" |
| 8 | self.tags = ['default', 'safe', 'smb', 'active-directory'] |
| 9 | |
| 10 | def configure(self): |
| 11 | self.match_service_name(['^smb', '^microsoft\-ds', '^netbios']) |
| 12 | self.match_port('tcp', [139, 445]) |
| 13 | self.run_once(True) |
| 14 | |
| 15 | async def run(self, service): |
| 16 | await service.execute('smbclient -L //{address} -N -I {address} 2>&1', outfile='smbclient.txt') |
nothing calls this directly
no outgoing calls
no test coverage detected