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 files17
dungnm24/cve-2020-0796Revision fe7aebbe1789
- ↑..Parent directory
- CheckSMBDFeature.cs
- CheckSmbDialect.cs
- ConnectToShare.cs
- DetectionInfo.cs
- ExecutePowerShellCommand.cs
- GetLocalAdapters.cs
- GetLocalNetworkAdapters.ps1
- GetOSVersion.cs
- GetRemoteAdapters.cs
- GetRemoteOSVersion.ps1
- LocalNetworkInterfaceSelector.xaml
- LocalNetworkInterfaceSelector.xaml.cs
- PingSUT.cs
- RemoteNetworkInterfaceSelector.xaml
- RemoteNetworkInterfaceSelector.xaml.cs
- SMBDClient.cs
- SMBDDetector.cs
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
WindowsProtocolTestSuites/ProtocolTestManager/Plugins/SMBDPlugin/SMBDPlugin/Detector/SMBDDetector.cs
C# · 2,830 bytes// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Rdma;
namespace Microsoft.Protocols.TestManager.SMBDPlugin.Detector
{
public partial class SMBDDetector
{
public DetectionInfo DetectionInfo { get; private set; }
public SMBDDetector(DetectionInfo detectionInfo)
{
DetectionInfo = detectionInfo;
}
public bool Detect()
{
bool result;
result = PingSUT();
if (!result)
{
// target unreachable and stop
return false;
}
result = GetOSVersion();
if (!result)
{
DetectionInfo.OSDetected = false;
}
else
{
DetectionInfo.OSDetected = true;
}
result = GetLocalAdapters();
if (!result)
{
// stop if local card not detected
return false;
}
result = CheckSmbDialect();
if (!result)
{
// stop if none support dialect
return false;
}
result = GetRemoteAdapters();
if (!result)
{
// stop if remote card not detected
return false;
}
result = ConnectToShareNonRDMA();
if (!result)
{
DetectionInfo.NonRDMATransportSupported = false;
}
else
{
DetectionInfo.NonRDMATransportSupported = true;
}
result = ConnectToShareRDMA();
if (!result)
{
// stop if RDMA transport failed
DetectionInfo.RDMATransportSupported = false;
}
else
{
DetectionInfo.RDMATransportSupported = true;
}
RdmaAdapterInfo rdmaAdapterInfo;
bool rdmaChannelV1Supported;
bool rdmaChannelV1InvalidateSupported;
result = CheckSMBDCapability(out rdmaAdapterInfo, out rdmaChannelV1Supported, out rdmaChannelV1InvalidateSupported);
DetectionInfo.InboundEntries = rdmaAdapterInfo.MaxInboundRequests;
DetectionInfo.OutboundEntries = rdmaAdapterInfo.MaxOutboundRequests;
DetectionInfo.InboundReadLimit = rdmaAdapterInfo.MaxInboundReadLimit;
DetectionInfo.RDMAChannelV1Supported = rdmaChannelV1Supported;
DetectionInfo.RDMAChannelV1InvalidateSupported = rdmaChannelV1InvalidateSupported;
return result;
}
}
}