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::RPORT(21),
OptString.new('USER', [ false, 'The username to authenticate as', 'anonymous']),
OptString.new('PASS', [ false, 'The password for the specified username', 'mozilla@example.com'])
OptString.new('FTPUSER', [ false, 'The username to authenticate as', 'anonymous']),
OptString.new('FTPPASS', [ false, 'The password for the specified username', 'mozilla@example.com'])
], Msf::Exploit::Remote::Ftp)
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
datastore['USER']
datastore['FTPUSER']
end
#
# Returns the user string from the 'PASS' option.
# Returns the user string from the 'FTPPASS' option.
#
def pass
datastore['PASS']
datastore['FTPPASS']
end
protected

View File

@ -23,8 +23,8 @@ module Exploit::Remote::Imap
[
Opt::RHOST,
Opt::RPORT(143),
OptString.new('USER', [ false, 'The username to authenticate as']),
OptString.new('PASS', [ false, 'The password for the specified username'])
OptString.new('IMAPUSER', [ false, 'The username to authenticate as']),
OptString.new('IMAPPASS', [ false, 'The password for the specified username'])
], Msf::Exploit::Remote::Ftp)
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
datastore['USER']
datastore['IMAPUSER']
end
#