Fixed bug in enum4linux plugin.

Fixes #178
This commit is contained in:
Tib3rius 2022-11-04 15:45:07 -04:00
parent 08d8f7b27c
commit da718cea25
3 changed files with 6 additions and 5 deletions

View File

@ -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')

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.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)

View File

@ -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"