[FixRM #8314] - Use OptPath instead of OptString

These modules need to use OptPath to make sure the path is validated.
bug/bundler_fix
sinn3r 2013-08-19 15:30:33 -05:00
parent 0af2f1c611
commit fb5ded1472
3 changed files with 4 additions and 3 deletions

View File

@ -31,7 +31,7 @@ class Metasploit3 < Msf::Auxiliary
register_options(
[
OptString.new('CSVFILE', [ false, 'The file that contains a list of default accounts.', File.join(Msf::Config.install_root, 'data', 'wordlists', 'oracle_default_passwords.csv')]),
Optpath.new('CSVFILE', [ false, 'The file that contains a list of default accounts.', File.join(Msf::Config.install_root, 'data', 'wordlists', 'oracle_default_passwords.csv')]),
], self.class)
deregister_options('DBUSER','DBPASS')

View File

@ -31,7 +31,7 @@ class Metasploit3 < Msf::Auxiliary
register_options(
[
OptString.new('PATH', [ true, "The path to detect mod_negotiation", '/']),
OptString.new('FILEPATH',[true, "path to file with file names",
OptPath.new('FILEPATH',[true, "path to file with file names",
File.join(Msf::Config.install_root, "data", "wmap", "wmap_files.txt")])
], self.class)
end

View File

@ -32,13 +32,14 @@ class Metasploit3 < Msf::Auxiliary
register_options(
[
Opt::RPORT(110),
# Should be OptPath
OptString.new('USER_FILE',
[
false,
'The file that contains a list of probable users accounts.',
File.join(Msf::Config.install_root, 'data', 'wordlists', 'unix_users.txt')
]),
OptString.new('PASS_FILE',
OptPath.new('PASS_FILE',
[
false,
'The file that contains a list of probable passwords.',