Changeset 621
- Timestamp:
- 02/11/2011 04:20:19 PM (2 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
docs/CHANGES.txt (modified) (1 diff)
-
plugins/nikto_core.plugin (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/docs/CHANGES.txt
r620 r621 23 23 - Ticket 155: -findonly is deprecated in favor of -Plugins "@@NONE" (-f will replicate this functionality) 24 24 - Ticket 82: Auth is now checked per realm, not per resource 25 - Fix parsing of nmap greppable output so that any port descr matching http is checked. Thanks Moses Hernandez for reporting. 25 - Fix parsing of nmap greppable output so that any port descr matching http is checked. Thanks Moses Hernandez & @mubix for 26 reporting & testing. 26 27 - Fix a potential div by zero error 27 28 - Various cleanups in nikto_report_xml.plugin and nikto_report_html.plugin -
trunk/plugins/nikto_core.plugin
r620 r621 1011 1011 sub parse_hostfile { 1012 1012 my ($file) = @_; 1013 my (@results, $hostdesc , $nmap);1014 $nmap = 0;1013 my (@results, $hostdesc); 1014 my $nmap = 0; 1015 1015 1016 1016 open(IN, $file) || die print STDERR "+ ERROR: Cannot open '$file':$@\n"; … … 1020 1020 # Check whether this is a greppable nmap file 1021 1021 chomp; 1022 if (/^# Nmap [0-9.]* scan initiated/) { 1023 $nmap = 1; 1024 } 1022 $nmap = 1 if (/^# Nmap/); 1025 1023 s/\#.*$//; 1026 1024 if ($_ eq "") { next; } … … 1028 1026 # Parse for nmap files 1029 1027 if ($nmap) { 1030 if (($_ !~ /Host/) || ($_ !~ /Ports/) || ($_ !~ /open/) || ($_ !~ / http/i)) { next; }1028 if (($_ !~ /Host/) || ($_ !~ /Ports/) || ($_ !~ /open/) || ($_ !~ /(?:http|ssl)/i)) { next; } 1031 1029 1032 1030 # Get the host name
Note: See TracChangeset
for help on using the changeset viewer.