Skip to content

Commit

Permalink
Partial fix for #738. User's selection of SSL is respected whether vi…
Browse files Browse the repository at this point in the history
…a -ssl/-nossl as well as the target host string.
  • Loading branch information
sullo authored and sullo committed Jan 15, 2022
1 parent 557fc0c commit 15ae550
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions program/plugins/nikto_core.plugin
Original file line number Diff line number Diff line change
Expand Up @@ -1744,7 +1744,7 @@ sub port_check {
my @checktypes;
if ($CLI{'nossl'}) { @checktypes = ('HTTP'); }
elsif ($CLI{'ssl'}) { @checktypes = ('HTTPS'); }
else { @checktypes = ('HTTPS', 'HTTP'); }
else { @checktypes = ('HTTP', 'HTTPS'); }

foreach my $method (split(/ /, $CONFIGFILE{'CHECKMETHODS'})) {
$request{'whisker'}->{'method'} = $method;
Expand Down Expand Up @@ -2433,7 +2433,6 @@ sub nfetch {
LW2::http_do_request_timeout(\%request, \%result);
$COUNTERS{'totalrequests'}++;
}
use Data::Dumper;

# Get cookies from response & add to jar
if ($CLI{'usecookies'}) {
Expand Down

0 comments on commit 15ae550

Please sign in to comment.