unify ntlm versions
This commit is contained in:
parent
ad847b4c56
commit
e7f1485eee
@ -216,7 +216,7 @@ func (n *V1ServerSession) ProcessAuthenticateMessage(am *AuthenticateMessage) (e
|
|||||||
if am.Version == nil {
|
if am.Version == nil {
|
||||||
// UGH not entirely sure how this could possibly happen, going to put this in for now
|
// UGH not entirely sure how this could possibly happen, going to put this in for now
|
||||||
// TODO investigate if this ever is really happening
|
// TODO investigate if this ever is really happening
|
||||||
am.Version = &VersionStruct{ProductMajorVersion: uint8(5), ProductMinorVersion: uint8(1), ProductBuild: uint16(2600), NTLMRevisionCurrent: uint8(15)}
|
am.Version = &VersionStruct{ProductMajorVersion: uint8(6), ProductMinorVersion: uint8(1), ProductBuild: uint16(7601), NTLMRevisionCurrent: uint8(15)}
|
||||||
log.Printf("Nil version in ntlmv1")
|
log.Printf("Nil version in ntlmv1")
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -334,7 +334,7 @@ func (n *V1ClientSession) GenerateAuthenticateMessage() (am *AuthenticateMessage
|
|||||||
am.Workstation, _ = CreateStringPayload("SQUAREMILL")
|
am.Workstation, _ = CreateStringPayload("SQUAREMILL")
|
||||||
am.EncryptedRandomSessionKey, _ = CreateBytePayload(n.encryptedRandomSessionKey)
|
am.EncryptedRandomSessionKey, _ = CreateBytePayload(n.encryptedRandomSessionKey)
|
||||||
am.NegotiateFlags = n.NegotiateFlags
|
am.NegotiateFlags = n.NegotiateFlags
|
||||||
am.Version = &VersionStruct{ProductMajorVersion: uint8(5), ProductMinorVersion: uint8(1), ProductBuild: uint16(2600), NTLMRevisionCurrent: uint8(15)}
|
am.Version = &VersionStruct{ProductMajorVersion: uint8(6), ProductMinorVersion: uint8(1), ProductBuild: uint16(7601), NTLMRevisionCurrent: uint8(15)}
|
||||||
return am, nil
|
return am, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -77,6 +77,7 @@ func (n *V2Session) calculateKeys(ntlmRevisionCurrent uint8) (err error) {
|
|||||||
func (n *V2Session) Seal(message []byte) ([]byte, error) {
|
func (n *V2Session) Seal(message []byte) ([]byte, error) {
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (n *V2Session) Sign(message []byte) ([]byte, error) {
|
func (n *V2Session) Sign(message []byte) ([]byte, error) {
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
@ -183,7 +184,7 @@ func (n *V2ServerSession) GenerateChallengeMessage() (cm *ChallengeMessage, err
|
|||||||
cm.TargetInfo = pairs
|
cm.TargetInfo = pairs
|
||||||
cm.TargetInfoPayloadStruct, _ = CreateBytePayload(pairs.Bytes())
|
cm.TargetInfoPayloadStruct, _ = CreateBytePayload(pairs.Bytes())
|
||||||
|
|
||||||
cm.Version = &VersionStruct{ProductMajorVersion: uint8(5), ProductMinorVersion: uint8(1), ProductBuild: uint16(2600), NTLMRevisionCurrent: uint8(15)}
|
cm.Version = &VersionStruct{ProductMajorVersion: uint8(6), ProductMinorVersion: uint8(1), ProductBuild: uint16(7601), NTLMRevisionCurrent: uint8(15)}
|
||||||
return cm, nil
|
return cm, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -233,7 +234,7 @@ func (n *V2ServerSession) ProcessAuthenticateMessage(am *AuthenticateMessage) (e
|
|||||||
if am.Version == nil {
|
if am.Version == nil {
|
||||||
// UGH not entirely sure how this could possibly happen, going to put this in for now
|
// UGH not entirely sure how this could possibly happen, going to put this in for now
|
||||||
// TODO investigate if this ever is really happening
|
// TODO investigate if this ever is really happening
|
||||||
am.Version = &VersionStruct{ProductMajorVersion: uint8(5), ProductMinorVersion: uint8(1), ProductBuild: uint16(2600), NTLMRevisionCurrent: uint8(15)}
|
am.Version = &VersionStruct{ProductMajorVersion: uint8(6), ProductMinorVersion: uint8(1), ProductBuild: uint16(7601), NTLMRevisionCurrent: uint8(15)}
|
||||||
|
|
||||||
log.Printf("Nil version in ntlmv2")
|
log.Printf("Nil version in ntlmv2")
|
||||||
}
|
}
|
||||||
@ -354,7 +355,7 @@ func (n *V2ClientSession) GenerateAuthenticateMessage() (am *AuthenticateMessage
|
|||||||
am.EncryptedRandomSessionKey, _ = CreateBytePayload(n.encryptedRandomSessionKey)
|
am.EncryptedRandomSessionKey, _ = CreateBytePayload(n.encryptedRandomSessionKey)
|
||||||
am.NegotiateFlags = n.NegotiateFlags
|
am.NegotiateFlags = n.NegotiateFlags
|
||||||
am.Mic = make([]byte, 16)
|
am.Mic = make([]byte, 16)
|
||||||
am.Version = &VersionStruct{ProductMajorVersion: uint8(5), ProductMinorVersion: uint8(1), ProductBuild: uint16(2600), NTLMRevisionCurrent: 0x0F}
|
am.Version = &VersionStruct{ProductMajorVersion: uint8(6), ProductMinorVersion: uint8(1), ProductBuild: uint16(7601), NTLMRevisionCurrent: 0x0F}
|
||||||
return am, nil
|
return am, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user