This fix is to make sure BLANK_PASSWORDS functions properly. See bug #5363.

git-svn-id: file:///home/svn/framework3/trunk@13684 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Wei Chen 2011-09-03 02:09:00 +00:00
parent 400afbadf8
commit 14d2a45c5b
1 changed files with 7 additions and 0 deletions

View File

@ -51,6 +51,13 @@ class Metasploit3 < Msf::Auxiliary
register_autofilter_ports((5900..5910).to_a) # Each instance increments the port by one.
#We need to set the following options to make sure BLANK_PASSWORDS functions properly
register_options(
[
OptString.new('USERNAME', [false, 'A specific username to authenticate as', '<BLANK>']),
OptBool.new('USER_AS_PASS', [false, 'Try the username as the password for all users', false])
])
# We don't currently support an auth mechanism that uses usernames, so we'll ignore any
# usernames that are passed in.
@strip_usernames = true