Land #4759, fix ms09_067_excel_featheader

bug/bundler_fix
sinn3r 2015-02-13 13:25:15 -06:00
commit b197b98ab9
No known key found for this signature in database
GPG Key ID: 2384DB4EF06F730B
1 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@ class Metasploit3 < Msf::Exploit::Remote
register_options(
[
OptString.new('FILENAME', [ true, 'The file name.', 'msf.xls']),
OptString.new('OUTPUTPATH', [ true, 'The output path to use.', Msf::Config.config_directory + "/data/exploits/"]),
OptString.new('OUTPUTPATH', [ true, 'The output path to use.', Msf::Config.local_directory]),
], self.class)
end
@ -146,7 +146,7 @@ class Metasploit3 < Msf::Exploit::Remote
print_status("Creating Excel spreadsheet ...")
out = File.expand_path(File.join(datastore['OUTPUTPATH'], datastore['FILENAME']))
out = File.join(File.join(datastore['OUTPUTPATH'], datastore['FILENAME']))
stg = Rex::OLE::Storage.new(out, Rex::OLE::STGM_WRITE)
if (not stg)
fail_with(Failure::Unknown, 'Unable to create output file')