Permalink
Browse files

Makes some small changes based on bperry's feedback

  • Loading branch information...
1 parent 917b938 commit 0589b65afb779c24248a6530d9bcb4d43cfa6b4a @sinn3r sinn3r committed Nov 27, 2012
Showing with 7 additions and 7 deletions.
  1. +7 −7 plugins/nessus.rb
View
@@ -999,23 +999,23 @@ def cmd_nessus_report_vulns(*args)
])
print_status("Grabbing all vulns for report #{rid}")
hosts=@n.report_hosts(rid)
- hosts.each {|host|
+ hosts.each do |host|
ports=@n.report_host_ports(rid, host['hostname'])
- ports.each {|port|
+ ports.each do |port|
details=@n.report_host_port_details(rid, host['hostname'], port['portnum'], port['protocol'])
- details.each {|detail|
+ details.each do |detail|
tbl << [host['hostname'],
port['portnum'],
port['protocol'],
detail['severity'],
detail['pluginID'],
detail['pluginName']
]
- }
- }
- }
+ end
+ end
+ end
print_good("Report Info")
- print_good "\n"
+ print_line
print_line tbl.to_s
print_status("You can:")
print_status(" Get information from a particular host: nessus_report_host_ports <hostname> <report id>")

0 comments on commit 0589b65

Please sign in to comment.