Exploit database

GH-ea91ecf629103514d4b348ce44007631

jamf/cve-2020-1206-poc

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2020-1206

3 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files22

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

ProtoSDK/MS-ADTS-LDAP/AdtsLdap/Packets/AdtsSearchResultReferencePacket.cs

C# · 954 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;
using LdapV3 = Microsoft.Protocols.TestTools.StackSdk.ActiveDirectory.Adts.Asn1CodecV3;

namespace Microsoft.Protocols.TestTools.StackSdk.ActiveDirectory.Adts
{
    public class AdtsSearchResultReferencePacket : AdtsLdapPacket
    {
        /// <summary>
        /// Gets inner request or response that's contained in the ldap message.
        /// </summary>
        /// <returns>The inner request or response.</returns>
        public override Asn1Object GetInnerRequestOrResponse()
        {
            if (this.ldapMessagev2 != null)
            {
                return null;
            }
            else
            {
                return (LdapV3.SearchResultReference)this.ldapMessagev3.protocolOp.GetData();
            }
        }
    }
}