Land #4759, fix ms09_067_excel_featheader
commit
b197b98ab9
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue