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 files10
dungnm24/cve-2020-0796Revision fe7aebbe1789
- ↑..Parent directory
- ChangeReplTrafficStatus.ps1
- CreateLingeringObject.ps1
- CreateLingeringObjectRemote.ps1
- DisableAuditingOnServer.ps1
- EnableAuditingOnServer.ps1
- EnableBasicAuth.ps1
- EndDomainRename.ps1
- RemoveLingeringObject.ps1
- RemoveLingeringObjectRemote.ps1
- UploadDomainRenameScript.ps1
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
WindowsProtocolTestSuites/TestSuites/ADFamily/src/Adapter/MS-DRSR/SUTControlAdapter/ChangeReplTrafficStatus.ps1
PowerShell · 906 bytes# Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
$pwd = ConvertTo-SecureString $remotePassword -AsPlainText -Force
# When creating the user credential, need to note that when "Basic" auth is set, need to
# provide a username in a form of "[email protected]"
$cred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList ($userName + "@" + $domainFQDN), $pwd
try {
If ($isEnabling -eq $false) {
Invoke-Command -ComputerName $remoteServerAddress -Credential $cred -ScriptBlock {
repadmin /options localhost +disable_inbound_repl +disable_outbound_repl
}
} else {
Invoke-Command -ComputerName $remoteServerAddress -Credential $cred -ScriptBlock {
repadmin /options localhost -disable_inbound_repl -disable_outbound_repl
}
}
} catch {
return $false
}
return $true