Changeset 403
- Timestamp:
- 05/04/2010 09:06:26 PM (3 years ago)
- Location:
- trunk/plugins
- Files:
-
- 3 edited
-
nikto_core.plugin (modified) (2 diffs)
-
nikto_robots.plugin (modified) (1 diff)
-
nikto_tests.plugin (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/nikto_core.plugin
r401 r403 55 55 ############################################################################### 56 56 sub is_404 { 57 my ($uri, $content, $rescode ) = @_;57 my ($uri, $content, $rescode, $loc_header) = @_; 58 58 $ext = get_ext($uri); 59 59 … … 62 62 } 63 63 elsif ($FoF{$ext}{'mode'} eq "REDIR") { 64 if ($ result{'location'}eq $FoF{$ext}{'location'}) {64 if ($loc_header eq $FoF{$ext}{'location'}) { 65 65 return 1; 66 66 } -
trunk/plugins/nikto_robots.plugin
r344 r403 37 37 sub nikto_robots { 38 38 my ($mark) = @_; 39 (my $RES, $CONTENT) = nfetch($mark, "/robots.txt", "GET", "", "", "", "robots"); 39 my %headers; 40 (my $RES, $CONTENT) = nfetch($mark, "/robots.txt", "GET", "", \%headers, "", "robots"); 40 41 41 if (($RES eq 200) || ($RES eq $FoF{'okay'}{'response'})) # got one!42 if (($RES eq 200) || ($RES eq $FoF{'okay'}{'response'})) 42 43 { 43 if (is_404("robots.txt", $CONTENT, $RES )) { return; }44 if (is_404("robots.txt", $CONTENT, $RES, $headers{'location'})) { return; } 44 45 45 46 my ($DIRS, $RFILES) = ""; -
trunk/plugins/nikto_tests.plugin
r390 r403 137 137 # lastly check for a false positive based on file extension or type 138 138 if (($m1_method eq "code") || ($m1o_method eq "code")) { 139 if (is_404($uri, $content, $res )) { next; }139 if (is_404($uri, $content, $res, $headers{'location'})) { next; } 140 140 } 141 141
Note: See TracChangeset
for help on using the changeset viewer.