Validate METHOD with OptEnum

This commit is contained in:
sinn3r 2012-02-17 18:54:53 -06:00
parent 974aea3521
commit 3390bdf312
1 changed files with 1 additions and 1 deletions

View File

@ -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" ]),