Skip to content

Commit

Permalink
Catch condition if host is TLS but -S wasn't specified
Browse files Browse the repository at this point in the history
  • Loading branch information
sullo committed Jul 26, 2024
1 parent 9961227 commit d332f1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion program/plugins/nikto_core.plugin
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ sub general_config {
# SSL Test
if (!LW2::ssl_is_available()) {
nprint("- ***** TLS/SSL support not available (see docs for SSL install) *****");
if ($CLI{'ssl'}) {
if ($CLI{'ssl'} || ($CLI{'host'} =~ /^https/i)) {
nprint("- ERROR: -ssl was specified but TLS/SSL is not available.");
exit;
}
Expand Down

0 comments on commit d332f1a

Please sign in to comment.