diff --git a/program/plugins/nikto_core.plugin b/program/plugins/nikto_core.plugin index c1dbca62..4a2c01a1 100644 --- a/program/plugins/nikto_core.plugin +++ b/program/plugins/nikto_core.plugin @@ -1252,7 +1252,6 @@ sub set_targets { push(@checkhosts, $host); } } - # Now parse the list of checkhosts foreach my $host (@checkhosts) { $host =~ s/\s+//g; @@ -1317,12 +1316,11 @@ sub set_targets { foreach my $p (@ports) { my $markhash = { 'port' => $p, - 'root' => $ti, - 'ident' => $th }; + 'root' => $tr, + 'ident' => $ti }; $markhash->{'port'} = $p; push(@marks, $markhash); - } } }