diff --git a/configure.py b/configure.py index f7606ef0555c6a38cfceddbdfcc7f4f5dce2d30b..8cf3af5e900cf9658cb54f15c22d6b14217ae23d 100644 --- a/configure.py +++ b/configure.py @@ -62,9 +62,9 @@ def configure(): cscan_config["NMAP"] = {"CS_NMAP": "nmap"} if profile == "basic_discovery": cscan_config["NMAP"]["CS_NMAP_ARGS"] = "-sV" - if profile == "basic_discovery_ports": + elif profile == "basic_discovery_ports": cscan_config["NMAP"]["CS_NMAP_ARGS"] = "-sV -p " + config["config"][scanner]["parameters"]["ports"] - if profile == "custom_parameters": + elif profile == "custom_parameters": cscan_config["NMAP"]["CS_NMAP_ARGS"] = config["config"][scanner]["parameters"]["parameters"] else: raise UnsupportedProfileException()