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 files33
dungnm24/cve-2020-0796Revision fe7aebbe1789
- ↑..Parent directory
- Config-CDC.ps1
- Config-DM.ps1
- Config-ENDPOINT.ps1
- Config-PDC.ps1
- Config-RODC.ps1
- Config-SDC.ps1
- Config-TDC.ps1
- ConfigGroupPolicyForClaims.ps1
- Create-ADObject.ps1
- Create-Account.ps1
- CreateLocalSideForestTrust.ps1
- Get-CertHash.ps1
- GetAvailablePort.ps1
- GetLDSInstanceGUID.ps1
- GetVmParameters.ps1
- GetVmParametersByComputerName.ps1
- GptTmpl.txt
- InstallADLDS.ps1
- InstallADLDSAnswerFile.txt
- Join-Domain.ps1
- NewCentralAccessPolicy.ps1
- NewCentralAccessRule.ps1
- NewClaimType.ps1
- NewResourceProperty.ps1
- PromoteChildDomain.ps1
- PromoteDomainController.ps1
- PromoteRODC.ps1
- Protocol.xml
- RestartAndRun.ps1
- RestartAndRunFinish.ps1
- SetAutoLogon.ps1
- SetNetworkConfiguration.ps1
- WaitFor-ComputerReady.ps1
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
WindowsProtocolTestSuites/TestSuites/ADFamily/Setup/Scripts/Get-CertHash.ps1
PowerShell · 2,799 bytes# Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
##############################################################################
#
# Microsoft Windows Powershell Scripting
# File: Get-CertHash.ps1
# Purpose: Get the cert hash of a certificate in the store.
# Version: 1.0 (14 July, 2008)
#
##############################################################################
param(
[string]$certIndex,
[string]$storeName = "My"
)
#----------------------------------------------------------------------------
# Starting script
#----------------------------------------------------------------------------
Write-Host "EXECUTING [Get-CertHash.ps1] ..." -foregroundcolor cyan
Write-Host "`$certIndex = $certIndex"
Write-Host "`$storeName = $storeName"
#----------------------------------------------------------------------------
# Function: Show-ScriptUsage
# Usage : Describes the usage information and options
#----------------------------------------------------------------------------
function Show-ScriptUsage
{
Write-host
Write-host "Get the cert hash of a certificate in the store."
Write-host
Write-host "Example: Get-CertHash.ps1 account my"
Write-host
}
#----------------------------------------------------------------------------
# Show help if required
#----------------------------------------------------------------------------
if ($args[0] -match '-(\?|(h|(help)))')
{
Show-ScriptUsage
return
}
#----------------------------------------------------------------------------
# Verify required parameters
#----------------------------------------------------------------------------
if ($certIndex -eq $null -or $certIndex -eq "")
{
Throw "the path of config file is required."
}
#----------------------------------------------------------------------------
# Get the cert hash of a certificate in store
#----------------------------------------------------------------------------
$certInfos = certutil -store $storeName $certIndex
foreach($line in $certInfos)
{
if($line.Contains("Cert Hash"))
{
$certHashLine = $line
break
}
}
if($certHashLine -ne $null)
{
$startIndex = $certHashLine.IndexOf(':')
$certHash = $certHashLine.SubString($startIndex + 1 )
$certHash = $certHash.replace(" ", "")
}
else
{
throw "Failed to get the cert hash of certIndex: $certIndex in $storeName store."
}
#----------------------------------------------------------------------------
# Ending script
#----------------------------------------------------------------------------
Write-Host "EXECUTE [Get-CertHash.ps1] Finished(SUCCEED)." -foregroundcolor green
return $certHash
exit