use the same option names for user/pass

git-svn-id: file:///home/svn/framework3/trunk@8674 4d416f70-5f16-0410-b530-b9f4589650da
unstable
James Lee 2010-02-26 22:14:58 +00:00
parent e4ec13eec2
commit 3b59bc7cfc
1 changed files with 4 additions and 0 deletions

View File

@ -65,6 +65,8 @@ class Metasploit3 < Msf::Exploit::Remote
register_options(
[
OptString.new('USERNAME', [ false, 'The username to authenticate as' ]),
OptString.new('PASSWORD', [ false, 'The password for the specified username' ]),
OptString.new('PATH', [ true, "The URI path of the manager app (/deploy and /undeploy will be used)", '/manager'])
], self.class)
end
@ -72,6 +74,8 @@ class Metasploit3 < Msf::Exploit::Remote
def auto_target
print_status("Attempting to automatically select a target...")
datastore['BasicAuthUser'] = datastore['USERNAME']
datastore['BasicAuthPass'] = datastore['PASSWORD']
path = datastore['PATH'] + '/serverinfo'
res = send_request_raw(