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 files20
jamf/cve-2020-1206-pocRevision 9e917e593af3

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

ProtoSDK/TransportStack/DecodePacketCallback.cs

C# · 1,689 bytes
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Protocols.TestTools.StackSdk.Transport
{
    /// <summary>
    /// to decode stack packet from the received message bytes.
    /// </summary>
    /// <param name="endPoint">
    /// an object that specifies the endpoint of message.<para/>
    /// if TcpClient, it's an IPEndPoint that specifies the local endpoint.<para/>
    /// if TcpServer, it's an IPEndPoint that specifies the remote endpoint.<para/>
    /// if Netbios, it's an int value that specifies the remote endpoint.<para/>
    /// if Udp, it's an IPEndPoint that specifies the remote endpoint.<para/>
    /// if Stream, it's an int value that identity the stream.
    /// </param>
    /// <param name="messageBytes">
    /// a bytes array that contains the received message bytes to be decoded.
    /// </param>
    /// <param name="consumedLength">
    /// return an int value that specifies the length of message bytes consumed by decoder.
    /// </param>
    /// <param name="expectedLength">
    /// return an int value that specifies the length of message bytes the decoder expects to receive.
    /// </param>
    /// <returns>
    /// a StackPacket array that contains the stack packets decoded from the received message bytes.<para/>
    /// if no packet is decoded, return either null or StackPacket[0].<para/>
    /// otherwise, return more than one packet in array.
    /// </returns>
    public delegate StackPacket[] DecodePacketCallback(
        object endPoint, byte[] messageBytes, out int consumedLength, out int expectedLength);
}