Exploit databaseDownload repository ZIP
GH-88d8bc551618926a04536090300b4292
dungnm24/cve-2020-0796
Sources for CVE-2020-0796
81 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files93
dungnm24/cve-2020-0796Revision fe7aebbe1789
- ↑..Parent directory
- AbandonRequest.cs
- AddRequest.cs
- AddResponse.cs
- AssertionValue.cs
- AttributeDescription.cs
- AttributeDescriptionList.cs
- AttributeList.cs
- AttributeList_element.cs
- AttributeType.cs
- AttributeTypeAndValues.cs
- AttributeValue.cs
- AttributeValueAssertion.cs
- AuthenticationChoice.cs
- BatchRequestRequestValue.cs
- BatchRequestResponseValue.cs
- BatchRequestValue.cs
- BindRequest.cs
- BindResponse.cs
- CompareRequest.cs
- CompareResponse.cs
- Control.cs
- Controls.cs
- DNInputRequestValue.cs
- DelRequest.cs
- DelResponse.cs
- DirSyncRequestValue.cs
- DirSyncResponseValue.cs
- DirsyncExRep.cs
- DirsyncExReq.cs
- ExpectedEntryCount.cs
- ExpectedEntryCountRequestValue.cs
- ExtendedDNRequestValue.cs
- ExtendedRequest.cs
- ExtendedResponse.cs
- Filter.cs
- LDAPDN.cs
- LDAPMessage.cs
- LDAPMessage_protocolOp.cs
- LDAPOID.cs
- LDAPResult.cs
- LDAPResult_resultCode.cs
- LDAPString.cs
- LDAPURL.cs
- MatchingRuleAssertion.cs
- MatchingRuleId.cs
- MessageID.cs
- ModifyDNRequest.cs
- ModifyDNResponse.cs
- ModifyRequest.cs
- ModifyRequest_modification_element.cs
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
WindowsProtocolTestSuites/ProtoSDK/MS-ADTS-LDAP/AdtsLdapV3Asn1Codec/BindRequest.cs
C# · 2,531 bytes// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Microsoft.Protocols.TestTools.StackSdk.Asn1;
namespace Microsoft.Protocols.TestTools.StackSdk.ActiveDirectory.Adts.Asn1CodecV3
{
/*
BindRequest ::= [APPLICATION 0] SEQUENCE {
version INTEGER (1 .. 127),
name LDAPDN,
authentication AuthenticationChoice }
*/
[Asn1Tag(Asn1TagType.Application, 0)]
public class BindRequest : Asn1Sequence
{
[Asn1Field(0), Asn1IntegerBound(Min = 1, Max =127)]
public Asn1Integer version { get; set; }
[Asn1Field(1)]
public LDAPDN name { get; set; }
[Asn1Field(2)]
public AuthenticationChoice authentication { get; set; }
public BindRequest()
{
this.version = null;
this.name = null;
this.authentication = null;
}
public BindRequest(
Asn1Integer version,
LDAPDN name,
AuthenticationChoice authentication)
{
this.version = version;
this.name = name;
this.authentication = authentication;
}
public override int BerEncode(IAsn1BerEncodingBuffer buffer, bool explicitTag = true)
{
int allLen = 0;
allLen += BerEncodeWithoutUnisersalTag(buffer);
allLen += TagBerEncode(buffer, new Asn1Tag(Asn1TagType.Application, 0));
return allLen;
}
public override int BerDecode(IAsn1DecodingBuffer buffer, bool explicitTag = true)
{
int headLen = 0;
Asn1Tag appTag;
headLen += TagBerDecode(buffer, out appTag);
int valueLen;
headLen += LengthBerDecode(buffer, out valueLen);
int valueLenDecode = 0;
version = new Asn1Integer();
valueLenDecode += version.BerDecode(buffer);
name = new LDAPDN();
valueLenDecode += name.BerDecode(buffer);
authentication = new AuthenticationChoice();
valueLenDecode += authentication.BerDecode(buffer);
if (valueLen != valueLenDecode)
{
throw new Asn1DecodingUnexpectedData(ExceptionMessages.DecodingUnexpectedData + " LDAPResult.");
}
return headLen + valueLen;
}
}
}