Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(naabu/nmap): help for defaults and change workflow opts #438

Merged
merged 6 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions secator/configs/workflows/host_recon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ input_types:
tasks:
naabu:
description: Find open ports
ports: "-" # scan all ports
nmap:
description: Search for vulnerabilities on open ports
skip_host_discovery: True
Expand Down
6 changes: 4 additions & 2 deletions secator/configs/workflows/port_scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,17 @@ description: Port scan
tags: [recon, network, http, vuln]
input_types:
- host
- cidr_range
tasks:
naabu:
description: Find open ports
ports: "-" # scan all ports
nmap:
description: Search for vulnerabilities on open ports
targets_: port.host
ports_: port.port
skip_host_discovery: True
version_detection: True
targets_: port.host
ports_: port.port
_group:
searchsploit:
description: Search for related exploits
Expand Down
2 changes: 1 addition & 1 deletion secator/tasks/naabu.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class naabu(ReconPort):
file_flag = '-list'
json_flag = '-json'
opts = {
PORTS: {'type': str, 'short': 'p', 'help': 'Ports'},
PORTS: {'type': str, 'short': 'p', 'help': 'Ports (default: nmap\'s top 100 ports'},
TOP_PORTS: {'type': str, 'short': 'tp', 'help': 'Top ports'},
'scan_type': {'type': str, 'help': 'Scan type (SYN (s)/CONNECT(c))'},
# 'health_check': {'is_flag': True, 'short': 'hc', 'help': 'Health check'}
Expand Down
2 changes: 1 addition & 1 deletion secator/tasks/nmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class nmap(VulnMulti):
opt_prefix = '--'
output_types = [Port, Vulnerability, Exploit]
opts = {
PORTS: {'type': str, 'short': 'p', 'help': 'Ports to scan'},
PORTS: {'type': str, 'short': 'p', 'help': 'Ports to scan (default: most common 1000 ports for each protocol)'},
TOP_PORTS: {'type': int, 'short': 'tp', 'help': 'Top ports to scan [full, 100, 1000]'},
SCRIPT: {'type': str, 'default': 'vulners', 'help': 'NSE scripts'},
'skip_host_discovery': {'is_flag': True, 'short': 'Pn', 'default': False, 'help': 'Skip host discovery (no ping)'},
Expand Down
Loading