Ensuring binary file reads, always.
git-svn-id: file:///home/svn/framework3/trunk@10501 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
dc79d360ac
commit
ddb2f71674
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue