MCPcopy
hub / github.com/fortra/impacket / generic_negTokenResp

Method generic_negTokenResp

impacket/smbserver.py:3185–3196  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3183
3184 @staticmethod
3185 def generic_negTokenResp():
3186 accept = SPNEGO_NegTokenResp()
3187 accept['SupportedMech'] = TypesMech['NTLMSSP - Microsoft NTLM Security Support Provider']
3188 # request-mic
3189 accept['NegState'] = b'\x03'
3190 acceptBytes = accept.getData()
3191
3192 respSMBCommand = smb2.SMB2SessionSetup_Response()
3193 respSMBCommand['SecurityBufferOffset'] = 0x48
3194 respSMBCommand['SecurityBufferLength'] = len(acceptBytes)
3195 respSMBCommand['Buffer'] = acceptBytes
3196 return respSMBCommand
3197
3198 @staticmethod
3199 def smb2SessionSetup(connId, smbServer, recvPacket):

Callers 1

smb2SessionSetupMethod · 0.80

Calls 2

getDataMethod · 0.95
SPNEGO_NegTokenRespClass · 0.90

Tested by

no test coverage detected