Exploit databaseDownload repository ZIP
GH-88d8bc551618926a04536090300b4292
dungnm24/cve-2020-0796
Sources for CVE-2020-0796
81 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files82
dungnm24/cve-2020-0796Revision fe7aebbe1789
- ↑..Parent directory
- SmbCloseRequestPacket.cs
- SmbCloseResponsePacket.cs
- SmbDirectTcpPacket.cs
- SmbErrorResponsePacket.cs
- SmbLogoffAndxRequestPacket.cs
- SmbLogoffAndxResponsePacket.cs
- SmbNegotiateImplicitNtlmResponsePacket.cs
- SmbNegotiateRequestPacket.cs
- SmbNegotiateResponsePacket.cs
- SmbNtCreateAndxRequestPacket.cs
- SmbNtCreateAndxResponsePacket.cs
- SmbNtTransFsctlSrvCopyChunkRequestPacket.cs
- SmbNtTransFsctlSrvCopyChunkResponsePacket.cs
- SmbNtTransFsctlSrvEnumerateSnapshotsRequestPacket.cs
- SmbNtTransFsctlSrvEnumerateSnapshotsResponsePacket.cs
- SmbNtTransFsctlSrvRequestResumeKeyRequestPacket.cs
- SmbNtTransFsctlSrvRequestResumeKeyResponsePacket.cs
- SmbNtTransQueryQuotaRequestPacket.cs
- SmbNtTransQueryQuotaResponsePacket.cs
- SmbNtTransRenameRequestPacket.cs
- SmbNtTransRenameResponsePacket.cs
- SmbNtTransSetQuotaRequestPacket.cs
- SmbNtTransSetQuotaResponsePacket.cs
- SmbNtTransactCreateRequestPacket.cs
- SmbNtTransactCreateResponsePacket.cs
- SmbNtTransactIoctlResponsePacket.cs
- SmbOpenAndxRequestPacket.cs
- SmbOpenAndxResponsePacket.cs
- SmbReadAndxRequestPacket.cs
- SmbReadAndxResponsePacket.cs
- SmbSessionSetupAndxRequestPacket.cs
- SmbSessionSetupAndxResponsePacket.cs
- SmbSessionSetupImplicitNtlmAndxRequestPacket.cs
- SmbSessionSetupImplicitNtlmAndxResponsePacket.cs
- SmbTrans2FindFirst2RequestPacket.cs
- SmbTrans2FindFirst2ResponsePacket.cs
- SmbTrans2FindNext2RequestPacket.cs
- SmbTrans2FindNext2ResponsePacket.cs
- SmbTrans2GetDfsReferralRequestPacket.cs
- SmbTrans2GetDfsReferralResponsePacket.cs
- SmbTrans2QueryFileInformationRequestPacket.cs
- SmbTrans2QueryFileInformationResponsePacket.cs
- SmbTrans2QueryFsInformationRequestPacket.cs
- SmbTrans2QueryFsInformationResponsePacket.cs
- SmbTrans2QueryPathInformationRequestPacket.cs
- SmbTrans2QueryPathInformationResponsePacket.cs
- SmbTrans2SetFileInformationRequestPacket.cs
- SmbTrans2SetFileInformationResponsePacket.cs
- SmbTrans2SetFsInformationRequestPacket.cs
- SmbTrans2SetFsInformationResponsePacket.cs
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
WindowsProtocolTestSuites/ProtoSDK/MS-SMB/Messages/SmbTransMailslotWriteResponsePacket.cs
C# · 3,230 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.FileAccessService.Cifs;
namespace Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Smb
{
/// <summary>
/// Packets for SmbTransMailslotWrite Response
/// </summary>
public class SmbTransMailslotWriteResponsePacket : Cifs.SmbTransMailslotWriteSuccessResponsePacket
{
#region Fields
// trans data
private TRANS_MAILSLOT_WRITE_Response_Trans_Data transData;
#endregion
#region Properties
/// <summary>
/// the trans data
/// </summary>
public TRANS_MAILSLOT_WRITE_Response_Trans_Data TransData
{
get
{
return this.transData;
}
set
{
this.transData = value;
}
}
#endregion
#region Convert from base class
/// <summary>
/// initialize packet from base packet.
/// </summary>
/// <param name = "packet">the base packet to initialize this packet. </param>
public SmbTransMailslotWriteResponsePacket(Cifs.SmbTransMailslotWriteSuccessResponsePacket packet)
: base(packet)
{
}
#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 SmbTransMailslotWriteResponsePacket(this);
}
/// <summary>
/// Encode the struct of TransData into the byte array in SmbData.Trans_Data
/// </summary>
protected override void EncodeTransData()
{
this.smbData.Trans_Data = CifsMessageUtils.ToBytes<ushort>(this.transData.OperationStatus);
}
/// <summary>
/// to decode the Trans data: from the general TransDada to the concrete Trans Data.
/// </summary>
protected override void DecodeTransData()
{
if (this.smbData.Trans_Data != null && this.smbData.Trans_Data.Length > 0)
{
this.transData.OperationStatus = TypeMarshal.ToStruct<ushort>(this.smbData.Trans_Data);
}
}
#endregion
#region Constructor
/// <summary>
/// Constructor.
/// </summary>
public SmbTransMailslotWriteResponsePacket()
: base()
{
}
/// <summary>
/// Constructor: Create a request directly from a buffer.
/// </summary>
public SmbTransMailslotWriteResponsePacket(byte[] data)
: base(data)
{
}
/// <summary>
/// Deep copy constructor.
/// </summary>
public SmbTransMailslotWriteResponsePacket(SmbTransMailslotWriteResponsePacket packet)
: base(packet)
{
}
#endregion
}
}