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/GetRemoteOSVersion.ps1
PowerShell · 937 bytes# Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
# This script is used to get the OS version of SUT computer
# Return Value: OS version string or $null if failed
$pwdConverted = ConvertTo-SecureString $ptfprop_SUTUserPassword -AsPlainText -Force
$cred = New-Object System.Management.Automation.PSCredential "$ptfprop_DomainName\$ptfprop_SUTUserName", $pwdConverted -ErrorAction Stop
$scriptblock = {
try {
$osInfo = Get-WmiObject -Class Win32_OperatingSystem
$result = "" | Select-Object -Property Caption, Version
$result.Caption = $osInfo.Caption
$result.Version = $osInfo.Version
return $result
}
catch {
return $null
}
}
try{
$cmdOutput = Invoke-Command -ComputerName $ptfprop_SUTName -credential $cred -ScriptBlock $scriptblock
return $cmdOutput #operation succeed
}
catch{
return $null # operation failed
}