diff --git a/tifoon-plugins/tifoon-nmap-scanner-plugin/src/main/java/com/elixlogic/tifoon/plugin/NmapPortScannerPlugin.java b/tifoon-plugins/tifoon-nmap-scanner-plugin/src/main/java/com/elixlogic/tifoon/plugin/NmapPortScannerPlugin.java index 9fa629c..e772028 100644 --- a/tifoon-plugins/tifoon-nmap-scanner-plugin/src/main/java/com/elixlogic/tifoon/plugin/NmapPortScannerPlugin.java +++ b/tifoon-plugins/tifoon-nmap-scanner-plugin/src/main/java/com/elixlogic/tifoon/plugin/NmapPortScannerPlugin.java @@ -129,7 +129,7 @@ private String[] buildNmapCommandWithArguments(@NonNull final PortScannerJob _re if (!unsupportedScanTypes.isEmpty()) { // warn about running non-root, since these scan types require root access on Unixes - log.error("Unsupported scan type(s) specified: {}", unsupportedScanTypes.toString()); + throw new IllegalArgumentException(String.format("Unsupported scan type(s) specified: %s", unsupportedScanTypes.toString())); } // identify root scan techniques