diff --git a/autorecon/default-plugins/enum4linux.py b/autorecon/default-plugins/enum4linux.py index 1f278fa..ac3e787 100644 --- a/autorecon/default-plugins/enum4linux.py +++ b/autorecon/default-plugins/enum4linux.py @@ -26,8 +26,9 @@ class Enum4Linux(ServiceScan): async def run(self, service): if service.target.ipversion == 'IPv4': - if self.tool is not None: - if self.tool == 'enum4linux': + tool = self.get_option('tool') + if tool is not None: + if tool == 'enum4linux': await service.execute('enum4linux -a -M -l -d {address} 2>&1', outfile='enum4linux.txt') - elif self.tool == 'enum4linux-ng': + elif tool == 'enum4linux-ng': await service.execute('enum4linux-ng -A -d -v {address} 2>&1', outfile='enum4linux-ng.txt') diff --git a/autorecon/main.py b/autorecon/main.py index 5faa654..b2de01a 100644 --- a/autorecon/main.py +++ b/autorecon/main.py @@ -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.targets import Target, Service -VERSION = "2.0.27" +VERSION = "2.0.28" if not os.path.exists(config['config_dir']): shutil.rmtree(config['config_dir'], ignore_errors=True, onerror=None) diff --git a/pyproject.toml b/pyproject.toml index 9e5d658..dab9e19 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "autorecon" -version = "2.0.27" +version = "2.0.28" description = "A multi-threaded network reconnaissance tool which performs automated enumeration of services." authors = ["Tib3rius"] license = "GNU GPL v3"