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

Class RPCDump

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

Source from the content-addressed store, hash-verified

1from autorecon.plugins import ServiceScan
2
3class RPCDump(ServiceScan):
4
5 def __init__(self):
6 super().__init__()
7 self.name = 'rpcdump'
8 self.tags = ['default', 'safe', 'rpc']
9
10 def configure(self):
11 self.match_service_name(['^msrpc', '^rpcbind', '^erpc', '^ncacn_http$'])
12 self.match_port('tcp', [135, 139, 443, 445, 593])
13
14 async def run(self, service):
15 if service.protocol == 'tcp':
16 await service.execute('impacket-rpcdump -port {port} {address}', outfile='{protocol}_{port}_rpc_rpcdump.txt')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected