Validate METHOD with OptEnum
This commit is contained in:
parent
974aea3521
commit
3390bdf312
|
@ -46,7 +46,7 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
register_options(
|
register_options(
|
||||||
[
|
[
|
||||||
OptPath.new('SQLMAP_PATH', [ true, "The sqlmap >= 0.6.1 full path ", '/sqlmap' ]),
|
OptPath.new('SQLMAP_PATH', [ true, "The sqlmap >= 0.6.1 full path ", '/sqlmap' ]),
|
||||||
OptString.new('METHOD', [ true, "HTTP Method", 'GET' ]),
|
OptEnum.new('METHOD', [true, 'HTTP Method', 'GET', ['GET', 'POST']]),
|
||||||
OptString.new('PATH', [ true, "The path/file to test for SQL injection", 'index.php' ]),
|
OptString.new('PATH', [ true, "The path/file to test for SQL injection", 'index.php' ]),
|
||||||
OptString.new('QUERY', [ false, "HTTP GET query", 'id=1' ]),
|
OptString.new('QUERY', [ false, "HTTP GET query", 'id=1' ]),
|
||||||
OptString.new('DATA', [ false, "The data string to be sent through POST" ]),
|
OptString.new('DATA', [ false, "The data string to be sent through POST" ]),
|
||||||
|
|
Loading…
Reference in New Issue