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 files93
dungnm24/cve-2020-0796Revision fe7aebbe1789
- ↑..Parent directory
- Add-AdRemoteUserToLocalGroup.ps1
- Add-DFSFolder.ps1
- Add-Printer.ps1
- Change-DomainUserPassword.ps1
- Check-ReturnValue.ps1
- CheckLicenseHeader.ps1
- Config-AuthorizedKeys.ps1
- Config-FileSharing.ps1
- Config-RSAKeys.ps1
- Create-AdUserWithGroupMembership.ps1
- Create-DFSNamespace.ps1
- Create-Folder.ps1
- Create-ManagedServiceAccount.ps1
- Create-SelfSignedCert.ps1
- Create-ShadowCopy.ps1
- CreateLocalSideForestTrust.ps1
- Disable-ICMPRedirect.ps1
- Disable-IPv6.ps1
- Disable_Firewall.ps1
- Enable-AdRecyleBin.ps1
- Enable-WinRM.ps1
- EnableRemoteAccess.ps1
- Execute-RemoteScript.ps1
- Find-PtfConfigFiles.ps1
- Get-AdLdsInstanceId.ps1
- Get-AvailablePort.ps1
- Get-CertHash.ps1
- Get-DomainControllerParameters.ps1
- Get-DomainGuid.ps1
- Get-DomainNetbiosName.ps1
- Get-DomainSid.ps1
- Get-ForestFuncLvl.ps1
- Get-InstalledScriptPath.ps1
- Get-OSVersion.ps1
- Get-OSVersionForADTests.ps1
- Get-OSVersionNumber.ps1
- Get-Parameter.ps1
- GetVMNameByComputerName.ps1
- GetVmParameters.ps1
- GetVmParametersByComputerName.ps1
- GptTmpl.txt
- Install-ADDS.ps1
- Install-AdCertificateService-Feature.ps1
- Install-AdLds-Feature.ps1
- Install-AdLds-Instance.ps1
- Install-DFSComponent.ps1
- Install-DfsManagement-Feature.ps1
- Install-FSRM.ps1
- Install-IIS.ps1
- Install-Iis-Feature.ps1
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
WindowsProtocolTestSuites/CommonScripts/Set-NetworkLocation.ps1
PowerShell · 1,609 bytes# Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
##############################################################################
# Function: Set-NetworkLocation
# Usage : Set network location to public or private
# Params : -NetworkLocation <string>: Indicate the network location which
# Must be either public or private.
##############################################################################
Param
(
[parameter(mandatory=$true)]
[ValidateNotNullOrEmpty()]
[string]$NetworkLocation
)
switch ($NetworkLocation.ToLower())
{
"private" {
$category = 1
break
}
"public" {
$category = 3
break
}
default {
throw "Incorrent NetworkLocation! Must be private or public."
}
}
try{
# Network location setting only available after Windows Vista
if([environment]::OSVersion.Version.Major -lt 6){ return }
# Skip network location setting if local machine is joined to a domain
if(1,3,4,5 -contains (Get-WmiObject win32_computersystem).DomainRole) { return }
# Get network connections
$NetworkListManager = [Activator]::CreateInstance([Type]::GetTypeFromCLSID([Guid]"{DCB00C01-570F-4A9B-8D69-199FDBA5723B}"))
$Connections = $NetworkListManager.GetNetworkConnections()
# Set network location
$Connections | foreach {$_.GetNetwork().SetCategory($category) }
}
catch
{
[string]$Message = "Unable to set network location. Error Message: " + $_.Exception.Message
throw $Message
}