switch to use a service specific user/pass datastore option to avoid payload conflicts

git-svn-id: file:///home/svn/incoming/trunk@3519 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Matt Miller 2006-02-08 01:07:47 +00:00
parent b99a9e5075
commit 6a52aae59a
2 changed files with 10 additions and 10 deletions

View File

@ -23,8 +23,8 @@ module Exploit::Remote::Ftp
[ [
Opt::RHOST, Opt::RHOST,
Opt::RPORT(21), Opt::RPORT(21),
OptString.new('USER', [ false, 'The username to authenticate as', 'anonymous']), OptString.new('FTPUSER', [ false, 'The username to authenticate as', 'anonymous']),
OptString.new('PASS', [ false, 'The password for the specified username', 'mozilla@example.com']) OptString.new('FTPPASS', [ false, 'The password for the specified username', 'mozilla@example.com'])
], Msf::Exploit::Remote::Ftp) ], Msf::Exploit::Remote::Ftp)
end end
@ -130,17 +130,17 @@ module Exploit::Remote::Ftp
## ##
# #
# Returns the user string from the 'USER' option. # Returns the user string from the 'FTPUSER' option.
# #
def user def user
datastore['USER'] datastore['FTPUSER']
end end
# #
# Returns the user string from the 'PASS' option. # Returns the user string from the 'FTPPASS' option.
# #
def pass def pass
datastore['PASS'] datastore['FTPPASS']
end end
protected protected

View File

@ -23,8 +23,8 @@ module Exploit::Remote::Imap
[ [
Opt::RHOST, Opt::RHOST,
Opt::RPORT(143), Opt::RPORT(143),
OptString.new('USER', [ false, 'The username to authenticate as']), OptString.new('IMAPUSER', [ false, 'The username to authenticate as']),
OptString.new('PASS', [ false, 'The password for the specified username']) OptString.new('IMAPPASS', [ false, 'The password for the specified username'])
], Msf::Exploit::Remote::Ftp) ], Msf::Exploit::Remote::Ftp)
end end
@ -89,10 +89,10 @@ module Exploit::Remote::Imap
## ##
# #
# Returns the user string from the 'USER' option. # Returns the user string from the 'IMAPUSER' option.
# #
def user def user
datastore['USER'] datastore['IMAPUSER']
end end
# #