Changeset 703
- Timestamp:
- 12/15/2011 05:26:31 AM (18 months ago)
- Location:
- trunk
- Files:
-
- 5 edited
-
docs/CHANGES.txt (modified) (1 diff)
-
plugins/nikto_core.plugin (modified) (1 diff)
-
plugins/nikto_report_xml.plugin (modified) (1 diff)
-
templates/xml_host_head.tmpl (modified) (1 diff)
-
templates/xml_start.tmpl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/docs/CHANGES.txt
r702 r703 1 1 2011-12-11 2 - Ticket 229: Don't repeat XML headers if appending to an existing report file, thanks to digininja for idea 2 3 - Ticket 228: Add client SSL certificate support. Thanks to monnerat for code submission! 3 4 - Ticket 226: Add GMT offset to time outputs -
trunk/plugins/nikto_core.plugin
r701 r703 1421 1421 1422 1422 if ($res) { 1423 1424 # this will fix for some Apaches that are smart enough to answer non ssl reqs on an ssl server 1423 # this will fix for some Apaches that are smart enough to answer non ssl reqs on an ssl server 1425 1424 if (defined $content 1426 1425 && $content =~ /speaking plain HTTP to an SSL/) { 1427 1426 dump_var("Result Hash", \%result); 1428 1427 next; 1429 }1428 } 1430 1429 nprint("- $checkssl Server found: " 1431 1430 . ($hostname || $ip) -
trunk/plugins/nikto_report_xml.plugin
r702 r703 43 43 sub xml_head { 44 44 my ($file) = @_; 45 46 # Write header for xml file, return file handle 45 46 # check for xml headers 47 $header_present=0; 48 49 if (-e $file) { 50 open(IN,"<$file") || die print STDERR "+ ERROR: Unable to open '$file' for read: $@\n"; 51 my $linectr=0; 52 while (<IN>) { 53 $linectr++; 54 if ($_ =~ /DOCTYPE niktoscan/) { $header_present=1; last; } 55 if ($linectr > 10) { last; } 56 } 57 close(IN); 58 } 59 47 60 open(OUT, ">>$file") || die print STDERR "+ ERROR: Unable to open '$file' for write: $@\n"; 48 49 my $xml = xml_change_vars($TEMPLATES{xml_start}); 50 $xml =~ s/\#NIKTODTD#/$CONFIGFILE{NIKTODTD}/; 51 print OUT "$xml"; 52 61 62 # If file doesn't contain a header, write it 63 if (!$header_present) { 64 my $xml = xml_change_vars($TEMPLATES{xml_start}); 65 $xml =~ s/\#NIKTODTD#/$CONFIGFILE{NIKTODTD}/; 66 print OUT "$xml"; 67 } 68 69 # Return file handle 53 70 return OUT; 54 71 } -
trunk/templates/xml_host_head.tmpl
r702 r703 1 <niktoscan hoststest="#TEMPL_NIKTO_HOSTS_TESTED#" options="#TEMPL_NIKTO_CLI#" version="#TEMPL_NIKTO_VER#" scanstart="#TEMPL_SCAN_START#" scanend="#TEMPL_SCAN_END#" scanelapsed="#TEMPL_SCAN_ELAPSED#" nxmlversion="1.2"> 2 1 3 <scandetails targetip="#TEMPL_IP#" targethostname="#TEMPL_HOSTNAME#" targetport="#TEMPL_PORT#" targetbanner="#TEMPL_BANNER#" starttime="#TEMPL_START#" sitename="#TEMPL_LINK_NAME#" siteip="#TEMPL_LINK_IP#" hostheader="#TEMPL_HOST_HEADER#" errors="#TEMPL_ERRORS#" checks="#TEMPL_CTR#"> 2 4 #TEMPL_SSL_INFO# -
trunk/templates/xml_start.tmpl
r702 r703 1 1 <?xml version="1.0" ?> 2 2 <!DOCTYPE niktoscan SYSTEM "#NIKTODTD#"> 3 <niktoscan hoststest="#TEMPL_NIKTO_HOSTS_TESTED#" options="#TEMPL_NIKTO_CLI#" version="#TEMPL_NIKTO_VER#" scanstart="#TEMPL_SCAN_START#" scanend="#TEMPL_SCAN_END#" scanelapsed="#TEMPL_SCAN_ELAPSED#" nxmlversion="1.2">
Note: See TracChangeset
for help on using the changeset viewer.