Exploit databaseDownload repository ZIP
GH-ea91ecf629103514d4b348ce44007631
jamf/cve-2020-1206-poc
Sources for CVE-2020-1206
3 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files93
jamf/cve-2020-1206-pocRevision 9e917e593af3
- ↑..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.
ProtoSDK/MS-ADTS-LDAP/AdtsLdapV3Asn1Codec/AbandonRequest.cs
C# · 2,719 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
{
/*
AbandonRequest ::= [APPLICATION 16] MessageID
*/
[Asn1Tag(Asn1TagType.Application, 16, EncodingWay = EncodingWay.Primitive)]
public class AbandonRequest : MessageID
{
public AbandonRequest()
: base()
{
}
public AbandonRequest(long? val)
: base(val)
{
}
public override int BerEncode(IAsn1BerEncodingBuffer buffer, bool explicitTag = true)
{
if (!VerifyConstraints())
{
throw new Asn1ConstraintsNotSatisfied(ExceptionMessages.ConstraintsNotSatisfied
+ " Encode " + this.GetType().Name + ".");
}
//Add the encoding result of Value to the front of buffer.
int resultLen = ValueBerEncode(buffer);
//Add the encoding result of Length to the front of buffer.
resultLen += LengthBerEncode(buffer, resultLen);
//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.
Asn1Tag topTag = this.TopTag;
if (topTag.TagType != Asn1TagType.Universal)
{
//resultLen += LengthBerEncode(buffer, resultLen);
resultLen += TagBerEncode(buffer, topTag);
}
return resultLen;
}
public override int BerDecode(IAsn1DecodingBuffer buffer, bool explicitTag = true)
{
int returnVal = 0;
//Decode the top most tag and universal class tag
Asn1Tag topTag;
returnVal += TagBerDecode(buffer, out topTag);
Asn1Tag topTagInDefinition = this.TopTag;
if (!topTag.Equals(topTagInDefinition))
{
throw new Asn1DecodingUnexpectedData(ExceptionMessages.DecodingUnexpectedData + " Top Most Tag decoding fail.");
}
//Decode length
int lengthAfterUniTag;
returnVal += LengthBerDecode(buffer, out lengthAfterUniTag);
//Decode data
returnVal += ValueBerDecode(buffer, lengthAfterUniTag);
if (!VerifyConstraints())
{
throw new Asn1ConstraintsNotSatisfied(ExceptionMessages.ConstraintsNotSatisfied
+ " Decode " + this.GetType().Name + ".");
}
return returnVal;
}
}
}