[FixRM #8314] - Use OptPath instead of OptString
These modules need to use OptPath to make sure the path is validated.bug/bundler_fix
parent
0af2f1c611
commit
fb5ded1472
|
@ -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')
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.',
|
||||
|
|
Loading…
Reference in New Issue