Skip to content
Snippets Groups Projects
Commit 64c8c36f authored by Zitnik, Anze's avatar Zitnik, Anze
Browse files

Added nmap profiles: basic_discovery_ports and custom_parameters

parent 7e5e3cf5
No related branches found
No related tags found
No related merge requests found
VERSION=v1.4.3
VERSION=v1.4.4
SERVICE=vat-genscan
......@@ -30,6 +30,10 @@ Supported scanners and their profiles:
* `basic`: no parameters
* `nmap`
* `basic_discovery`: no parameters
* `basic_discovery_ports`: provide port parameter (nmap -sV -p xxx)
* ports
* `custom`: provide all command line parameters (nmap xxxxxx)
* parameters
*See example config files in `config-examples` folder.*
......
{
"target": {
"ip": "192.168.1.0/24"
},
"config": {
"nmap": {
"profile": "custom_parameters",
"parameters": {
"parameters": "-sV -p 22"
}
}
}
}
{
"target": {
"ip": "192.168.1.0/24"
},
"config": {
"nmap": {
"profile": "basic_discovery_ports",
"parameters": {
"ports": "22,80,443"
}
}
}
}
{
"target": {
"ip": "192.168.1.0/24"
},
"config": {
"nmap": {
"profile": "basic_discovery"
}
}
}
......@@ -62,6 +62,10 @@ def configure():
cscan_config["NMAP"] = {"CS_NMAP": "nmap"}
if profile == "basic_discovery":
cscan_config["NMAP"]["CS_NMAP_ARGS"] = "-sV"
if profile == "basic_discovery_ports":
cscan_config["NMAP"]["CS_NMAP_ARGS"] = "-sV -p " + config["config"][scanner]["parameters"]["ports"]
if profile == "custom_parameters":
cscan_config["NMAP"]["CS_NMAP_ARGS"] = config["config"][scanner]["parameters"]["parameters"]
else:
raise UnsupportedProfileException()
cs_scripts.append("nmap.sh")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment