Skip to content

Commit

Permalink
Don't alert if content-type matches 'text/' #728
Browse files Browse the repository at this point in the history
  • Loading branch information
sullo committed Jul 4, 2021
1 parent 21e761b commit bf9044c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions program/plugins/nikto_sitefiles.plugin
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,8 @@ sub nikto_sitefiles {
nfetch($mark, "/$f", "GET", "", "", \%flags, "sitefiles");

if (($response->{'content-type'} =~ '/^application\//i')
|| ( ($res == 200)
&& ($response->{'content-length'} > 0)
&& (!is_404("/$f", $content, $res, $response->{'location'})))
|| (($res == 200) && ($response->{'content-length'} > 0) && ($response->{'content-type'} !~ '/^text\//i') &&
(!is_404("/$f", $content, $res, $response->{'location'})))
) {

# alert
Expand Down

0 comments on commit bf9044c

Please sign in to comment.