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 files27
dungnm24/cve-2020-0796Revision fe7aebbe1789
- ↑..Parent directory
- ChangeNonDCMachineAccountStatus.ps1
- ConfigServer.ps1
- ConfigServerRejectMD5Client.ps1
- GetAdministratorObjPath.ps1
- GetAttributeValueFromAD.ps1
- GetBadPwdCountAttribute.ps1
- GetClientObjPath.ps1
- GetDnsHostNameAttributeOfClient.ps1
- GetHomeDirectoryAttribute.ps1
- GetHomeDriveAttribute.ps1
- GetLastLogonAttribute.ps1
- GetLogonCountAttribute.ps1
- GetOperatingSystemAttribute.ps1
- GetPdcObjPath.ps1
- GetProfilePathAttribute.ps1
- GetPwdLastSetAttribute.ps1
- GetSamAccountNameAttribute.ps1
- GetScriptPathAttribute.ps1
- GetServicePrincipalNameAttribute.ps1
- PauseNetlogonService.ps1
- ReadPtfConfig.ps1
- RestartNetlogonService.ps1
- RestoreNetlogonService.ps1
- ResumeNetlogonService.ps1
- SetDnsHostNameAttributeOfClient.ps1
- StartNetlogonService.ps1
- StopNetlogonService.ps1
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
WindowsProtocolTestSuites/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/ResumeNetlogonService.ps1
PowerShell · 1,229 bytes# Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
$waitingTime = $PTFProp_MS_NRPC_Adapter_WaitingTime
if($sutType -eq "PrimaryDc")
{
$computerName = $PTFProp_Common_WritableDC1_NetbiosName
}
if($sutType -eq "TrustDc")
{
$computerName = $PTFProp_Common_TDC_NetbiosName
}
#try
#{
##get service object
Invoke-Command -Computername $computerName -Scriptblock { $serviceObj = Get-Service Netlogon
##Resume service.
Resume-Service -inputObject $serviceObj
##The waiting time is needed if NetrLogonControl2Ex Response or NetrLogonControl2 Response is ERROR_NO_LOGON_SERVERS.
Start-Sleep -s $waitingTime
Sleep 10
do
{
Sleep 5
$serviceObj =Invoke-Command -Computername $computerName -Scriptblock {Get-Service Netlogon}
}While($serviceObj.Status -ne "Running")
Sleep 10
}
#}
#catch
#{
# "Resume Netlogon Service failed!"
#}
#finally
#{
[System.GC]::Collect();
[System.GC]::WaitForPendingFinalizers();
[System.GC]::Collect();
#}
New-Item -Force -ItemType directory -Path c:\temp\
$strFileName="c:\temp\changednetlogonservicestatus.txt"
If (Test-Path $strFileName)
{
Remove-Item $strFileName
}