Handling empty strings as a valid required option is tricky, just make the password option non-required

git-svn-id: file:///home/svn/framework3/trunk@5363 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2008-01-27 02:08:13 +00:00
parent 19c36b0f24
commit eec19d108e
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ class Exploits::Windows::Smb::Psexec < Msf::Exploit::Remote
register_options( register_options(
[ [
OptString.new('SMBUser', [ true, 'The username to authenticate as', "Administrator"]), OptString.new('SMBUser', [ true, 'The username to authenticate as', "Administrator"]),
OptString.new('SMBPass', [ true, 'The password for the specified username', ""]) OptString.new('SMBPass', [ false, 'The password for the specified username', ""])
], self.class) ], self.class)
end end