Remove references to OUTPUTPATH options, unless files are created using a different method
git-svn-id: file:///home/svn/framework3/trunk@12892 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
85f5e5fb98
commit
247251ac07
|
@ -15,6 +15,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
Rank = GoodRanking
|
||||
|
||||
include Msf::Exploit::FILEFORMAT
|
||||
include Msf::Exploit::Egghunter
|
||||
|
||||
def initialize(info = {})
|
||||
super(update_info(info,
|
||||
|
|
|
@ -103,6 +103,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/"]),
|
||||
], self.class)
|
||||
end
|
||||
|
||||
|
|
|
@ -224,7 +224,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
|
||||
|
||||
# Create the output file
|
||||
out = File.expand_path(File.join(datastore['OUTPUTPATH'], datastore['FILENAME']))
|
||||
out = datastore['FILENAME']
|
||||
stg = Rex::OLE::Storage.new(out, Rex::OLE::STGM_WRITE)
|
||||
if (not stg)
|
||||
raise RuntimeError, 'Unable to create output file'
|
||||
|
|
|
@ -111,6 +111,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
register_options(
|
||||
[
|
||||
OptString.new('FILENAME', [ true, 'The file name.', 'msf.doc']),
|
||||
OptString.new('OUTPUTPATH', [ true, 'The output path to use.', Msf::Config.config_directory + "/data/exploits/"]),
|
||||
], self.class)
|
||||
end
|
||||
|
||||
|
|
|
@ -215,7 +215,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
# create the empty IMG file
|
||||
imgfn = datastore['FILENAME'].dup
|
||||
imgfn.gsub!(/\.ccd$/, '.img')
|
||||
out = File.expand_path(File.join(datastore['OUTPUTPATH'], imgfn))
|
||||
out = imgfn
|
||||
File.new(out,"wb").close
|
||||
print_status("Created empty output file #{out}")
|
||||
|
||||
|
|
|
@ -120,7 +120,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
# create the empty BIN file
|
||||
binfn = datastore['FILENAME'].dup
|
||||
binfn.gsub!(/\.cue$/, '.bin')
|
||||
out = File.expand_path(File.join(datastore['OUTPUTPATH'], binfn))
|
||||
out = binfn
|
||||
File.new(out,"wb").close
|
||||
print_status("Created empty output file #{out}")
|
||||
|
||||
|
|
Loading…
Reference in New Issue