Minor config changes.
Changed the --create-port-dirs option to --no-port-dirs (making their creation default). Added -T4 to the default nmap commands. Adjusted config.toml accordingly.
This commit is contained in:
parent
c4d1c8a9db
commit
7552e6bcf7
|
|
@ -16,7 +16,7 @@ configurable_keys = [
|
||||||
'output',
|
'output',
|
||||||
'single_target',
|
'single_target',
|
||||||
'only_scans_dir',
|
'only_scans_dir',
|
||||||
'create_port_dirs',
|
'no_port_dirs',
|
||||||
'heartbeat',
|
'heartbeat',
|
||||||
'timeout',
|
'timeout',
|
||||||
'target_timeout',
|
'target_timeout',
|
||||||
|
|
@ -33,7 +33,7 @@ configurable_keys = [
|
||||||
configurable_boolean_keys = [
|
configurable_boolean_keys = [
|
||||||
'single_target',
|
'single_target',
|
||||||
'only_scans_dir',
|
'only_scans_dir',
|
||||||
'create_port_dirs',
|
'no_port_dirs',
|
||||||
'proxychains',
|
'proxychains',
|
||||||
'disable_sanity_checks',
|
'disable_sanity_checks',
|
||||||
'accessible'
|
'accessible'
|
||||||
|
|
@ -56,11 +56,11 @@ config = {
|
||||||
'output': 'results',
|
'output': 'results',
|
||||||
'single_target': False,
|
'single_target': False,
|
||||||
'only_scans_dir': False,
|
'only_scans_dir': False,
|
||||||
'create_port_dirs': False,
|
'no_port_dirs': False,
|
||||||
'heartbeat': 60,
|
'heartbeat': 60,
|
||||||
'timeout': None,
|
'timeout': None,
|
||||||
'target_timeout': None,
|
'target_timeout': None,
|
||||||
'nmap': '-vv --reason -Pn',
|
'nmap': '-vv --reason -Pn -T4',
|
||||||
'nmap_append': '',
|
'nmap_append': '',
|
||||||
'proxychains': False,
|
'proxychains': False,
|
||||||
'disable_sanity_checks': False,
|
'disable_sanity_checks': False,
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
# Configure regular AutoRecon options at the top of this file.
|
# Configure regular AutoRecon options at the top of this file.
|
||||||
|
|
||||||
create-port-dirs = true
|
# nmap-append = '-T3'
|
||||||
nmap-append = '-T4'
|
|
||||||
# verbose = 1
|
# verbose = 1
|
||||||
# max-scans = 30
|
# max-scans = 30
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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.7"
|
VERSION = "2.0.8"
|
||||||
|
|
||||||
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)
|
||||||
|
|
@ -278,7 +278,7 @@ async def service_scan(plugin, service):
|
||||||
port = service.port
|
port = service.port
|
||||||
name = service.name
|
name = service.name
|
||||||
|
|
||||||
if config['create_port_dirs']:
|
if not config['no_port_dirs']:
|
||||||
scandir = os.path.join(scandir, protocol + str(port))
|
scandir = os.path.join(scandir, protocol + str(port))
|
||||||
os.makedirs(scandir, exist_ok=True)
|
os.makedirs(scandir, exist_ok=True)
|
||||||
os.makedirs(os.path.join(scandir, 'xml'), exist_ok=True)
|
os.makedirs(os.path.join(scandir, 'xml'), exist_ok=True)
|
||||||
|
|
@ -517,7 +517,7 @@ async def scan_target(target):
|
||||||
protocol = service.protocol
|
protocol = service.protocol
|
||||||
port = service.port
|
port = service.port
|
||||||
|
|
||||||
if config['create_port_dirs']:
|
if not config['no_port_dirs']:
|
||||||
scandir = os.path.join(scandir, protocol + str(port))
|
scandir = os.path.join(scandir, protocol + str(port))
|
||||||
os.makedirs(scandir, exist_ok=True)
|
os.makedirs(scandir, exist_ok=True)
|
||||||
os.makedirs(os.path.join(scandir, 'xml'), exist_ok=True)
|
os.makedirs(os.path.join(scandir, 'xml'), exist_ok=True)
|
||||||
|
|
@ -789,7 +789,7 @@ async def run():
|
||||||
parser.add_argument('-o', '--output', action='store', help='The output directory for results. Default: %(default)s')
|
parser.add_argument('-o', '--output', action='store', help='The output directory for results. Default: %(default)s')
|
||||||
parser.add_argument('--single-target', action='store_true', help='Only scan a single target. A directory named after the target will not be created. Instead, the directory structure will be created within the output directory. Default: %(default)s')
|
parser.add_argument('--single-target', action='store_true', help='Only scan a single target. A directory named after the target will not be created. Instead, the directory structure will be created within the output directory. Default: %(default)s')
|
||||||
parser.add_argument('--only-scans-dir', action='store_true', help='Only create the "scans" directory for results. Other directories (e.g. exploit, loot, report) will not be created. Default: %(default)s')
|
parser.add_argument('--only-scans-dir', action='store_true', help='Only create the "scans" directory for results. Other directories (e.g. exploit, loot, report) will not be created. Default: %(default)s')
|
||||||
parser.add_argument('--create-port-dirs', action='store_true', help='Create directories for ports within the "scans" directory (e.g. scans/tcp80, scans/udp53) and store results in these directories. Default: %(default)s')
|
parser.add_argument('--no-port-dirs', action='store_true', help='Don\'t create directories for ports (e.g. scans/tcp80, scans/udp53). Instead store all results in the "scans" directory itself. Default: %(default)s')
|
||||||
parser.add_argument('--heartbeat', action='store', type=int, help='Specifies the heartbeat interval (in seconds) for scan status messages. Default: %(default)s')
|
parser.add_argument('--heartbeat', action='store', type=int, help='Specifies the heartbeat interval (in seconds) for scan status messages. Default: %(default)s')
|
||||||
parser.add_argument('--timeout', action='store', type=int, help='Specifies the maximum amount of time in minutes that AutoRecon should run for. Default: %(default)s')
|
parser.add_argument('--timeout', action='store', type=int, help='Specifies the maximum amount of time in minutes that AutoRecon should run for. Default: %(default)s')
|
||||||
parser.add_argument('--target-timeout', action='store', type=int, help='Specifies the maximum amount of time in minutes that a target should be scanned for before abandoning it and moving on. Default: %(default)s')
|
parser.add_argument('--target-timeout', action='store', type=int, help='Specifies the maximum amount of time in minutes that a target should be scanned for before abandoning it and moving on. Default: %(default)s')
|
||||||
|
|
|
||||||
|
|
@ -134,7 +134,7 @@ class Service:
|
||||||
port = self.port
|
port = self.port
|
||||||
name = self.name
|
name = self.name
|
||||||
|
|
||||||
if config['create_port_dirs']:
|
if not config['no_port_dirs']:
|
||||||
scandir = os.path.join(scandir, protocol + str(port))
|
scandir = os.path.join(scandir, protocol + str(port))
|
||||||
os.makedirs(scandir, exist_ok=True)
|
os.makedirs(scandir, exist_ok=True)
|
||||||
os.makedirs(os.path.join(scandir, 'xml'), exist_ok=True)
|
os.makedirs(os.path.join(scandir, 'xml'), exist_ok=True)
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "autorecon"
|
name = "autorecon"
|
||||||
version = "2.0.7"
|
version = "2.0.8"
|
||||||
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"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue