diff --git a/lib/msf/core/db.rb b/lib/msf/core/db.rb index 674456fca0..21cc94fd67 100644 --- a/lib/msf/core/db.rb +++ b/lib/msf/core/db.rb @@ -1008,7 +1008,7 @@ class DBManager info[k] = opts[k] if opts[k] end - return unless info[:attempted_at] and info.has_key?(:exploited) + return unless info[:attempted_at] vuln.vuln_attempts.create(info) } diff --git a/lib/msf/core/db_export.rb b/lib/msf/core/db_export.rb index d9e8742b60..8eafe84ac4 100644 --- a/lib/msf/core/db_export.rb +++ b/lib/msf/core/db_export.rb @@ -529,12 +529,12 @@ class Export # Vuln details sub-elements report_file.write(" \n") e.vuln_details.find(:all).each do |d| - report_file.write(" \n") + report_file.write(" \n") d.attributes.each_pair do |k,v| el = create_xml_element(k,v) report_file.write(" #{el}\n") end - report_file.write(" \n") + report_file.write(" \n") end report_file.write(" \n")