Typo on the file opening mode

unstable
Carlos Perez 2011-12-16 01:13:06 -04:00
parent e991094bd2
commit 3c08836f51
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ class Metasploit3 < Msf::Post
if not ::File.exists?(datastore['RESOURCE']) if not ::File.exists?(datastore['RESOURCE'])
raise "Resource File does not exists!" raise "Resource File does not exists!"
else else
::File.open(datastore['RESOURCE'], "br").each_line do |cmd| ::File.open(datastore['RESOURCE'], "rb").each_line do |cmd|
next if cmd.strip.length < 1 next if cmd.strip.length < 1
next if cmd[0,1] == "#" next if cmd[0,1] == "#"
begin begin