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

Method run

autorecon/default-plugins/smbmap.py:13–20  ·  view source on GitHub ↗
(self, service)

Source from the content-addressed store, hash-verified

11 self.match_service_name(['^smb', '^microsoft\-ds', '^netbios'])
12
13 async def run(self, service):
14 if service.target.ipversion == 'IPv4':
15 await service.execute('smbmap -H {address} -P {port} 2>&1', outfile='smbmap-share-permissions.txt')
16 await service.execute('smbmap -u null -p "" -H {address} -P {port} 2>&1', outfile='smbmap-share-permissions.txt')
17 await service.execute('smbmap -H {address} -P {port} -r 2>&1', outfile='smbmap-list-contents.txt')
18 await service.execute('smbmap -u null -p "" -H {address} -P {port} -r 2>&1', outfile='smbmap-list-contents.txt')
19 await service.execute('smbmap -H {address} -P {port} -x "ipconfig /all" 2>&1', outfile='smbmap-execute-command.txt')
20 await service.execute('smbmap -u null -p "" -H {address} -P {port} -x "ipconfig /all" 2>&1', outfile='smbmap-execute-command.txt')

Callers

nothing calls this directly

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected