()
| 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): |
no test coverage detected