diff --git a/lib/msf/core/db.rb b/lib/msf/core/db.rb index 41bbf91b1d..79c0f8d064 100644 --- a/lib/msf/core/db.rb +++ b/lib/msf/core/db.rb @@ -1676,7 +1676,7 @@ class DBManager # Imports loot, tasks, and reports from an MSFX ZIP report. # XXX: This function is stupidly long. It needs to be refactored. def import_msfx_collateral(args={}, &block) - data = File.open(args[:filename], "r") {|f| f.read(f.stat.size)} + data = File.open(args[:filename], "rb") {|f| f.read(f.stat.size)} wspace = args[:wspace] || args['wspace'] || workspace bl = validate_ips(args[:blacklist]) ? args[:blacklist].split : [] basedir = args[:basedir] || args['basedir'] || File.join(Msf::Config.install_root, "data", "msfx")