示例#1
0
        public static NtChallengeResponseFields CreateNtChallengeResponseFields(ChallengeMessage challengeMessage, string strUserName, byte[] passwordNTHash, ref uint payloadPointer)
        {
            var np = NTLMV2Response.CreateNTLMV2Response(challengeMessage, strUserName, passwordNTHash);
            var t  = new NtChallengeResponseFields(payloadPointer, np);

            payloadPointer += t.NtChallengeResponseLen;
            return(t);
        }
示例#2
0
        public NtChallengeResponseFields(uint payloadPointer, NTLMV2Response variableNTLMV2Response)
        {
            NtChallengeResponseBufferOffset = payloadPointer;
            VariableNTLMv2Response          = variableNTLMV2Response;
            var a = (ushort)(variableNTLMV2Response.Length);

            NtChallengeResponseLen    = a;
            NtChallengeResponseMaxLen = a;
        }