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 files26
jamf/cve-2020-1206-pocRevision 9e917e593af3
- ↑..Parent directory
- SmbTransCallNmpipeRequestPacket.cs
- SmbTransCallNmpipeSuccessResponsePacket.cs
- SmbTransMailslotWriteRequestPacket.cs
- SmbTransMailslotWriteSuccessResponsePacket.cs
- SmbTransPeekNmpipeRequestPacket.cs
- SmbTransPeekNmpipeSuccessResponsePacket.cs
- SmbTransQueryNmpipeInfoRequestPacket.cs
- SmbTransQueryNmpipeInfoSuccessResponsePacket.cs
- SmbTransQueryNmpipeStateRequestPacket.cs
- SmbTransQueryNmpipeStateSuccessResponsePacket.cs
- SmbTransRapRequestPacket.cs
- SmbTransRapResponsePacket.cs
- SmbTransRawReadNmpipeRequestPacket.cs
- SmbTransRawReadNmpipeSuccessResponsePacket.cs
- SmbTransRawWriteNmpipeRequestPacket.cs
- SmbTransRawWriteNmpipeSuccessResponsePacket.cs
- SmbTransReadNmpipeRequestPacket.cs
- SmbTransReadNmpipeSuccessResponsePacket.cs
- SmbTransSetNmpipeStateRequestPacket.cs
- SmbTransSetNmpipeStateSuccessResponsePacket.cs
- SmbTransTransactNmpipeRequestPacket.cs
- SmbTransTransactNmpipeSuccessResponsePacket.cs
- SmbTransWaitNmpipeRequestPacket.cs
- SmbTransWaitNmpipeSuccessResponsePacket.cs
- SmbTransWriteNmpipeRequestPacket.cs
- SmbTransWriteNmpipeSuccessResponsePacket.cs
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
ProtoSDK/MS-CIFS/Messages/Trans/SmbTransQueryNmpipeStateSuccessResponsePacket.cs
C# · 3,870 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 Microsoft.Protocols.TestTools.StackSdk;
namespace Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Cifs
{
/// <summary>
/// Packets for SmbTransQueryNmpipeState SuccessResponse
/// </summary>
public class SmbTransQueryNmpipeStateSuccessResponsePacket : SmbTransactionSuccessResponsePacket
{
#region Fields
private TRANS_QUERY_NMPIPE_STATE_Response_Trans_Parameters transParameters;
#endregion
#region Properties
/// <summary>
/// get or set the Trans_Parameters:TRANS_QUERY_NMPIPE_STATE_Response_Trans_Parameters
/// </summary>
public TRANS_QUERY_NMPIPE_STATE_Response_Trans_Parameters TransParameters
{
get
{
return this.transParameters;
}
set
{
this.transParameters = value;
}
}
#endregion
#region Constructor
/// <summary>
/// Constructor.
/// </summary>
public SmbTransQueryNmpipeStateSuccessResponsePacket()
: base()
{
this.InitDefaultValue();
}
/// <summary>
/// Constructor: Create a request directly from a buffer.
/// </summary>
public SmbTransQueryNmpipeStateSuccessResponsePacket(byte[] data)
: base(data)
{
}
/// <summary>
/// Deep copy constructor.
/// </summary>
public SmbTransQueryNmpipeStateSuccessResponsePacket(SmbTransQueryNmpipeStateSuccessResponsePacket packet)
: base(packet)
{
this.InitDefaultValue();
this.transParameters.NMPipeStatus = packet.transParameters.NMPipeStatus;
}
#endregion
#region override methods
/// <summary>
/// to create an instance of the StackPacket class that is identical to the current StackPacket.
/// </summary>
/// <returns>a new Packet cloned from this.</returns>
public override StackPacket Clone()
{
return new SmbTransQueryNmpipeStateSuccessResponsePacket(this);
}
/// <summary>
/// Encode the struct of TransParameters into the byte array in SmbData.Trans_Parameters
/// </summary>
protected override void EncodeTransParameters()
{
this.smbData.Trans_Parameters =
CifsMessageUtils.ToBytes<TRANS_QUERY_NMPIPE_STATE_Response_Trans_Parameters>(this.transParameters);
}
/// <summary>
/// Encode the struct of TransData into the byte array in SmbData.Trans_Data
/// </summary>
protected override void EncodeTransData()
{
}
/// <summary>
/// to decode the Trans parameters: from the general TransParameters to the concrete Trans Parameters.
/// </summary>
protected override void DecodeTransParameters()
{
if (this.smbParametersBlock.WordCount > 0)
{
this.transParameters = TypeMarshal.ToStruct<TRANS_QUERY_NMPIPE_STATE_Response_Trans_Parameters>(
this.smbData.Trans_Parameters);
}
}
/// <summary>
/// to decode the Trans data: from the general TransDada to the concrete Trans Data.
/// </summary>
protected override void DecodeTransData()
{
}
#endregion
#region initialize fields with default value
/// <summary>
/// init packet, set default field data
/// </summary>
private void InitDefaultValue()
{
}
#endregion
}
}