Skip to content

Commit 58c5be0

Browse files
committed
Allow SMBDirect to be optional
The smb_version module needs to deregister the SMBDirect option, but cannot do this because SMBDirect is a required option. By having it as optional, the user no longer needs to set it. Also, since SMBDirect already has a default value, having it as optional should not change the mixin's default behavior.
1 parent bef67d7 commit 58c5be0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/exploit/smb/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def initialize(info = {})
4545

4646
register_advanced_options(
4747
[
48-
OptBool.new('SMBDirect', [ true, 'The target port is a raw SMB service (not NetBIOS)', true ]),
48+
OptBool.new('SMBDirect', [ false, 'The target port is a raw SMB service (not NetBIOS)', true ]),
4949
OptString.new('SMBUser', [ false, 'The username to authenticate as', '']),
5050
OptString.new('SMBPass', [ false, 'The password for the specified username', '']),
5151
OptString.new('SMBDomain', [ false, 'The Windows domain to use for authentication', '.']),

0 commit comments

Comments
 (0)