Land #2145, consistent datastore options

This commit is contained in:
William Vu 2013-07-22 17:06:36 -05:00
commit 48666f1466
1 changed files with 4 additions and 4 deletions

View File

@ -46,8 +46,8 @@ class Metasploit4 < Msf::Exploit::Remote
[
Opt::RPORT(443),
OptBool.new('SSL', [true, 'Use SSL', true]),
OptString.new('MYUSERNAME', [true, 'Your username', 'admin']),
OptString.new('MYPASSWORD', [true, 'Your password', 'changeme']),
OptString.new('USERNAME', [true, 'Your username', 'admin']),
OptString.new('PASSWORD', [true, 'Your password', 'changeme']),
OptString.new('TARGETURI', [ true, 'The path to the application', '/']),
], self.class
)
@ -59,8 +59,8 @@ class Metasploit4 < Msf::Exploit::Remote
'method' => 'POST',
'uri' => normalize_uri(target_uri.path, 'users', 'login'),
'vars_post' => {
'login[login]' => datastore['MYUSERNAME'],
'login[password]' => datastore['MYPASSWORD']
'login[login]' => datastore['USERNAME'],
'login[password]' => datastore['PASSWORD']
}
)