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/SmbTrans2FindNext2ResponsePacket.cs
C# · 2,937 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 SmbTrans2FindNext2 Response
/// </summary>
public class SmbTrans2FindNext2ResponsePacket : Cifs.SmbTrans2FindNext2FinalResponsePacket
{
#region Convert from base class
/// <summary>
/// initialize packet from base packet.
/// </summary>
/// <param name = "packet">the base packet to initialize this packet. </param>
public SmbTrans2FindNext2ResponsePacket(Cifs.SmbTrans2FindNext2FinalResponsePacket packet)
: base(packet)
{
}
#endregion
#region Constructor
/// <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 SmbTrans2FindNext2ResponsePacket(this);
}
/// <summary>
/// Constructor.
/// </summary>
public SmbTrans2FindNext2ResponsePacket()
: base()
{
}
/// <summary>
/// Constructor: Create a request directly from a buffer.
/// </summary>
public SmbTrans2FindNext2ResponsePacket(byte[] data)
: base(data)
{
}
/// <summary>
/// Constructor: Create a request directly from a buffer.
/// </summary>
public SmbTrans2FindNext2ResponsePacket(
Cifs.FindInformationLevel informationLevel,
bool isResumeKeyExisted)
: base((Cifs.FindInformationLevel)informationLevel, isResumeKeyExisted)
{
}
#endregion
#region override methods
/// <summary>
/// to decode the Trans2 data: from the general Trans2Dada to the concrete Trans2 Data.
/// </summary>
protected override void DecodeTrans2Data()
{
if (this.smbData.Trans2_Data != null && this.smbData.Trans2_Data.Length > 0)
{
TRANS2_FIND_NEXT2_Response_Trans2_Data trans2Data;
trans2Data.Data = SmbMessageUtils.UnmarshalSmbFindInformationLevelPayloads(
(FindInformationLevel)this.informationLevel,
this.Trans2Parameters.SearchCount,
this.smbData.Trans2_Data);
if (trans2Data.Data != null)
{
this.Trans2Data = trans2Data;
return;
}
}
base.DecodeTrans2Data();
}
#endregion
}
}