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 files14
jamf/cve-2020-1206-pocRevision 9e917e593af3
- ↑..Parent directory
- RpceCoAlterContextPdu.cs
- RpceCoAlterContextRespPdu.cs
- RpceCoAuth3Pdu.cs
- RpceCoBindAckPdu.cs
- RpceCoBindNakPdu.cs
- RpceCoBindPdu.cs
- RpceCoCancelPdu.cs
- RpceCoFaultPdu.cs
- RpceCoOrphanedPdu.cs
- RpceCoPdu.cs
- RpceCoRequestPdu.cs
- RpceCoResponsePdu.cs
- RpceCoShutdownPdu.cs
- RpcePdu.cs
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
ProtoSDK/MS-RPCE/Pdu/RpceCoOrphanedPdu.cs
C# · 2,572 bytes// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.IO;
namespace Microsoft.Protocols.TestTools.StackSdk.Networking.Rpce
{
/// <summary>
/// The orphaned PDU is used by a client to notify a server
/// that it is aborting a request in progress that has not
/// been entirely transmitted yet, or that it is aborting
/// a (possibly lengthy) response in progress.
/// </summary>
public class RpceCoOrphanedPdu : RpceCoPdu
{
/// <summary>
/// Initialize an instance of RpceCoOrphanedPdu class.
/// </summary>
/// <param name="context">context</param>
public RpceCoOrphanedPdu(RpceContext context)
: base(context)
{
}
/// <summary>
/// Initialize an instance of RpceCoOrphanedPdu class, and
/// unmarshal a byte array to PDU struct.
/// </summary>
/// <param name="context">context</param>
/// <param name="pduBytes">A byte array contains PDU data.</param>
public RpceCoOrphanedPdu(RpceContext context, byte[] pduBytes)
: base(context, pduBytes)
{
}
/// <summary>
/// optional authentication verifier<para/>
/// following fields present if auth_length != 0
/// </summary>
public auth_verifier_co_t? auth_verifier;
/// <summary>
/// Get the size of structure.
/// Length of stub, auth_verifier and auth_value is not included.
/// </summary>
/// <returns>The size</returns>
internal override int GetSize()
{
int size = base.GetSize();
return size;
}
/// <summary>
/// Marshal the PDU struct to a byte array.
/// </summary>
/// <param name="binaryWriter">BinaryWriter</param>
internal override void ToBytes(BinaryWriter binaryWriter)
{
base.ToBytes(binaryWriter);
RpceUtility.AuthVerifierToBytes(binaryWriter, auth_verifier);
}
/// <summary>
/// Un-marshal a byte array to PDU struct.
/// </summary>
/// <param name="binaryReader">BinaryReader</param>
internal override void FromBytes(BinaryReader binaryReader)
{
base.FromBytes(binaryReader);
auth_verifier = RpceUtility.AuthVerifierFromBytes(
binaryReader,
auth_length);
}
}
}