Skip to content

Commit b197b98

Browse files
committed
Land rapid7#4759, fix ms09_067_excel_featheader
2 parents 6b99103 + 92422c7 commit b197b98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/exploits/windows/fileformat/ms09_067_excel_featheader.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def initialize(info = {})
9696
register_options(
9797
[
9898
OptString.new('FILENAME', [ true, 'The file name.', 'msf.xls']),
99-
OptString.new('OUTPUTPATH', [ true, 'The output path to use.', Msf::Config.config_directory + "/data/exploits/"]),
99+
OptString.new('OUTPUTPATH', [ true, 'The output path to use.', Msf::Config.local_directory]),
100100
], self.class)
101101
end
102102

@@ -146,7 +146,7 @@ def exploit
146146

147147
print_status("Creating Excel spreadsheet ...")
148148

149-
out = File.expand_path(File.join(datastore['OUTPUTPATH'], datastore['FILENAME']))
149+
out = File.join(File.join(datastore['OUTPUTPATH'], datastore['FILENAME']))
150150
stg = Rex::OLE::Storage.new(out, Rex::OLE::STGM_WRITE)
151151
if (not stg)
152152
fail_with(Failure::Unknown, 'Unable to create output file')

0 commit comments

Comments
 (0)