Save the output file on local_directory

bug/bundler_fix
jvazquez-r7 2015-02-12 16:16:21 -06:00
parent f0bf881cc3
commit 92422c7b9a
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')