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-b9f4589650daunstable
parent
19c36b0f24
commit
eec19d108e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue