lib/output/xlsout.rb in prenus-0.0.6 vs lib/output/xlsout.rb in prenus-0.0.7

- old
+ new

@@ -32,14 +32,14 @@ # def run # File.open(@options[:outputdir] + "/out.xls", 'w') do |f| @oFile.syswrite "<table border=1>\n" - @oFile.syswrite "<tr><th>Nessus Plugin ID</th><th>Severity</th><th>Synopsis</th><th>Description</th><th>Solution</th><th>Hosts</th></tr>\n" + @oFile.syswrite "<tr><th>Nessus Plugin ID</th><th>Severity</th><th>Plugin Name</th><th>Synopsis</th><th>Description</th><th>Solution</th><th>Hosts</th></tr>\n" @events.each do |k,v| - @oFile.syswrite "<tr><td>" + k.to_s + "</td><td>" + v[:severity].to_s + "</td><td>" + v[:synopsis] + "</td><td>" + v[:description] + "</td><td>" + v[:solution].to_s + "</td>" + @oFile.syswrite "<tr><td>" + k.to_s + "</td><td>" + v[:severity].to_s + "</td><td>" + v[:plugin_name] + "</td><td>" + v[:synopsis] + "</td><td>" + v[:description] + "</td><td>" + v[:solution].to_s + "</td>" @oFile.syswrite "<td>" impacted_hosts = [] v[:ports].each {|k,v| v[:hosts].each do |h,w| impacted_hosts << h @@ -55,6 +55,6 @@ @oFile.syswrite "</table>\n" # end end end -end end \ No newline at end of file +end end