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/UnbindRequest.cs
C# · 2,743 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
{
/*
UnbindRequest ::= [APPLICATION 2] NULL
*/
[Asn1Tag(Asn1TagType.Application, 2, EncodingWay = EncodingWay.Primitive)]
public class UnbindRequest : Asn1Object
{
/// <summary>
/// Encodes the object by BER.
/// </summary>
/// <param name="buffer">A buffer that stores the BER encoding result.</param>
/// <param name="explicitTag">Indicates whether the tags should be encoded explicitly. In our Test Suites, it will always be true.</param>
/// <returns>The length of the encoding result of this object.</returns>
/// <exception cref="Asn1ConstraintsNotSatisfied">
/// Thrown when the constraints are not satisfied before encoding.
/// </exception>
/// <remarks>Override this method in a user-defined class only if the procedure is not applicable in some special scenarios.</remarks>
public override int BerEncode(IAsn1BerEncodingBuffer buffer, bool explicitTag = true)
{
int resultLen = 0;
//Add the encoding result of Length to the front of buffer.
resultLen += LengthBerEncode(buffer, 0);
//Add the encoding result of the top most tag (in most cases it's Application Class Tag) to the front of buffer if it is defined.
resultLen += TagBerEncode(buffer, this.TopTag);
return resultLen;
}
/// <summary>
/// Decodes the object by BER.
/// </summary>
/// <param name="buffer">A buffer that contains a BER encoding result.</param>
/// <returns>The number of the bytes consumed in the buffer to decode this object.</returns>
/// <exception cref="Asn1ConstraintsNotSatisfied">
/// Thrown when the constraints are not satisfied after decoding.
/// </exception>
/// <exception cref="Asn1DecodingUnexpectedData">
/// Thrown when the data in the buffer can not be properly decoded.
/// </exception>
/// <remarks>Override this method in a user-defined class only if the procedure is not applicable in some special scenarios.</remarks>
public override int BerDecode(IAsn1DecodingBuffer buffer, bool explicitTag)
{
int decodeLen = 0;
int resultVal = LengthBerDecode(buffer, out decodeLen);
Asn1Tag topTag;
resultVal += TagBerDecode(buffer, out topTag);
return resultVal;
}
}
}