Fixed bug in rpcdump plugin.

impacket-rpcdump only supports ports 135, 139, 443, 445, and 593. Added a limitation to the plugin so it only runs against those ports.
This commit is contained in:
Tib3rius 2022-01-10 13:14:42 -05:00
parent 9cb392d4b4
commit 7d5fae0ff7
3 changed files with 3 additions and 2 deletions

View File

@ -36,6 +36,7 @@ class RPCDump(ServiceScan):
def configure(self): def configure(self):
self.match_service_name(['^msrpc', '^rpcbind', '^erpc']) self.match_service_name(['^msrpc', '^rpcbind', '^erpc'])
self.match_port('tcp', [135, 139, 443, 445, 593])
async def run(self, service): async def run(self, service):
if service.protocol == 'tcp': if service.protocol == 'tcp':

View File

@ -17,7 +17,7 @@ from autorecon.io import slugify, e, fformat, cprint, debug, info, warn, error,
from autorecon.plugins import Pattern, PortScan, ServiceScan, Report, AutoRecon from autorecon.plugins import Pattern, PortScan, ServiceScan, Report, AutoRecon
from autorecon.targets import Target, Service from autorecon.targets import Target, Service
VERSION = "2.0.10" VERSION = "2.0.11"
if not os.path.exists(config['config_dir']): if not os.path.exists(config['config_dir']):
shutil.rmtree(config['config_dir'], ignore_errors=True, onerror=None) shutil.rmtree(config['config_dir'], ignore_errors=True, onerror=None)

View File

@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "autorecon" name = "autorecon"
version = "2.0.10" version = "2.0.11"
description = "A multi-threaded network reconnaissance tool which performs automated enumeration of services." description = "A multi-threaded network reconnaissance tool which performs automated enumeration of services."
authors = ["Tib3rius"] authors = ["Tib3rius"]
license = "GNU GPL v3" license = "GNU GPL v3"