Skip to content

Commit

Permalink
Don't even attempt scan if using an unsupported scan type (-sO i.e. I…
Browse files Browse the repository at this point in the history
…P protocol scanning)
jonfryd committed Apr 18, 2017
1 parent 7f30c4f commit 2efc746
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2efc746

Please sign in to comment.