Skip to content

Commit 717799c

Browse files
committed
fix typos
negotiate spelled wrong in a couple spots and only 3 g's in loggging
1 parent 343a785 commit 717799c

File tree

1 file changed

+7
-7
lines changed
  • modules/auxiliary/server/capture

1 file changed

+7
-7
lines changed

modules/auxiliary/server/capture/smb.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ def initialize
6161

6262
register_advanced_options(
6363
[
64-
OptBool.new("SMB_EXTENDED_SECURITY", [ true, "Use smb extended security negociation, when set client will use ntlmssp, if not then client will use classic lanman authentification", false ]),
65-
OptBool.new("NTLM_UseNTLM2_session", [ true, "Activate the 'negociate NTLM2 key' flag in NTLM authentication. " +
66-
"When SMB extended security negociation is set, client will use ntlm2_session instead of ntlmv1 (default on win 2K and above)", false ]),
67-
OptBool.new("USE_GSS_NEGOCIATION", [ true, "Send a gss_security blob in smb_negociate response when SMB extended security is set. " +
64+
OptBool.new("SMB_EXTENDED_SECURITY", [ true, "Use smb extended security negotiation, when set client will use ntlmssp, if not then client will use classic lanman authentification", false ]),
65+
OptBool.new("NTLM_UseNTLM2_session", [ true, "Activate the 'negotiate NTLM2 key' flag in NTLM authentication. " +
66+
"When SMB extended security negotiate is set, client will use ntlm2_session instead of ntlmv1 (default on win 2K and above)", false ]),
67+
OptBool.new("USE_GSS_NEGOTIATION", [ true, "Send a gss_security blob in smb_negotiate response when SMB extended security is set. " +
6868
"When this flag is not set, Windows will respond without gss encapsulation, Ubuntu will still use gss.", true ]),
6969
OptString.new('DOMAIN_NAME', [ true, "The domain name used during smb exchange with smb extended security set ", "anonymous" ])
7070
], self.class)
@@ -103,7 +103,7 @@ def smb_cmd_dispatch(cmd, c, buff)
103103

104104
case cmd
105105
when CONST::SMB_COM_NEGOTIATE
106-
#client set extended security negociation
106+
#client set extended security negotiation
107107
if (pkt['Payload']['SMB'].v['Flags2'] & 0x800 != 0)
108108
smb_cmd_negotiate(c, buff, true)
109109
else
@@ -204,7 +204,7 @@ def smb_cmd_negotiate(c, buff, c_esn)
204204
def smb_cmd_session_setup(c, buff, esn)
205205
smb = @state[c]
206206

207-
#extended security has been negociated
207+
#extended security has been negotiated
208208
if esn
209209
pkt = CONST::SMB_SETUP_NTLMV2_PKT.make_struct
210210
pkt.from_s(buff)
@@ -422,7 +422,7 @@ def smb_get_hash(smb, arg = {}, esn=true)
422422
nt_cli_challenge = arg[:nt_cli_challenge]
423423
end
424424

425-
# Clean up the data for loggging
425+
# Clean up the data for logging
426426
if (smb[:username] == "")
427427
smb[:username] = nil
428428
end

0 commit comments

Comments
 (0)