From 92422c7b9a8edfd82827e5bb7d7f7f9b846c14c8 Mon Sep 17 00:00:00 2001 From: jvazquez-r7 Date: Thu, 12 Feb 2015 16:16:21 -0600 Subject: [PATCH] Save the output file on local_directory --- .../exploits/windows/fileformat/ms09_067_excel_featheader.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/exploits/windows/fileformat/ms09_067_excel_featheader.rb b/modules/exploits/windows/fileformat/ms09_067_excel_featheader.rb index 612a433469..01127ad7e2 100644 --- a/modules/exploits/windows/fileformat/ms09_067_excel_featheader.rb +++ b/modules/exploits/windows/fileformat/ms09_067_excel_featheader.rb @@ -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')