[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(
|
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)
|
], self.class)
|
||||||
|
|
||||||
deregister_options('DBUSER','DBPASS')
|
deregister_options('DBUSER','DBPASS')
|
||||||
|
|
|
@ -31,7 +31,7 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
register_options(
|
register_options(
|
||||||
[
|
[
|
||||||
OptString.new('PATH', [ true, "The path to detect mod_negotiation", '/']),
|
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")])
|
File.join(Msf::Config.install_root, "data", "wmap", "wmap_files.txt")])
|
||||||
], self.class)
|
], self.class)
|
||||||
end
|
end
|
||||||
|
|
|
@ -32,13 +32,14 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
register_options(
|
register_options(
|
||||||
[
|
[
|
||||||
Opt::RPORT(110),
|
Opt::RPORT(110),
|
||||||
|
# Should be OptPath
|
||||||
OptString.new('USER_FILE',
|
OptString.new('USER_FILE',
|
||||||
[
|
[
|
||||||
false,
|
false,
|
||||||
'The file that contains a list of probable users accounts.',
|
'The file that contains a list of probable users accounts.',
|
||||||
File.join(Msf::Config.install_root, 'data', 'wordlists', 'unix_users.txt')
|
File.join(Msf::Config.install_root, 'data', 'wordlists', 'unix_users.txt')
|
||||||
]),
|
]),
|
||||||
OptString.new('PASS_FILE',
|
OptPath.new('PASS_FILE',
|
||||||
[
|
[
|
||||||
false,
|
false,
|
||||||
'The file that contains a list of probable passwords.',
|
'The file that contains a list of probable passwords.',
|
||||||
|
|
Loading…
Reference in New Issue