Land #2145, consistent datastore options
This commit is contained in:
commit
48666f1466
|
@ -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']
|
||||
}
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue