fixing import of zip workspace

MS-1528
bug/bundler_fix
Louis Sato 2016-05-23 16:09:22 -05:00
parent 7e34d1e1cf
commit d0b87131a9
No known key found for this signature in database
GPG Key ID: 501290E4CECB7DF4
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ module Msf::DBManager::Import::MetasploitFramework::Zip
# Parses host Nokogiri::XML::Element
def parse_zip_host(host, wspace, bl, allow_yaml, btag, args, basedir, host_info, &block)
host_info[host.at("id").text.to_s.strip] = nils_for_nulls(host.at("address").text.to_s.strip)
host_info[host.at("id").text.to_s.strip] = nils_for_nulls(host.at("address").text.to_s.strip) unless host.at('address').nil?
end
# Parses loot Nokogiri::XML::Element

View File

@ -28,7 +28,7 @@ module Msf::DBManager::Import::Report
report_id = report_report(report_info)
# Handle artifacts
report.elements['artifacts'].elements.each do |artifact|
report.elements.at('artifacts').elements.each do |artifact|
artifact_opts = {}
artifact.elements.each do |attr|
skip_nodes = %w|id accessed-at|