Exploit databaseDownload repository ZIP
GH-ea91ecf629103514d4b348ce44007631
jamf/cve-2020-1206-poc
Sources for CVE-2020-1206
3 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files41
jamf/cve-2020-1206-pocRevision 9e917e593af3
- ↑..Parent directory
- Add-IADGroupMember.ps1
- AutoLogon.reg
- CleanupSignals.cmd
- Config-ClientComputer.ps1
- Config-DriverComputer.ps1
- Enable-RemoteSessionInServer.ps1
- Fix-XmlLogFile.ps1
- Get-IADComputer.ps1
- Get-IADDomainControllers.ps1
- Get-IADGroup.ps1
- Get-IADGroupMember.ps1
- Get-IADGroupMembership.ps1
- Get-IADSearchRoot.ps1
- Get-IADUser.ps1
- Get-Parameter.ps1
- IsJoinDomainSuccess.sh
- IsUnjoinDomainSuccess.sh
- Join-Domain.ps1
- JoinDomainCreateAcctLDAP.sh
- JoinDomainCreateAcctSAMR.sh
- JoinDomainPredefAcct.sh
- LocateDomainController.sh
- MS-ADOD_ODRequirementSpec.xml
- Modify-ConfigFileNode.ps1
- New-IADComputer.ps1
- New-IADGroup.ps1
- New-IADUser.ps1
- New-RemoteSession.ps1
- ParamConfig.xml
- PostScript-Client.ps1
- PostScript-PDC.ps1
- Protocol.xml
- Remove-IADGroupMember.ps1
- Remove-IADObject.ps1
- Set-IADUser.ps1
- Set-Parameter.ps1
- TurnOff-FileReadonly.ps1
- Unjoin-Domain.ps1
- UnjoinDomain.sh
- WaitFor-ComputerReady.ps1
- addStartupScript.reg
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
TestSuites/MS-ADOD/Setup/Scripts/New-RemoteSession.ps1
PowerShell · 3,873 bytes#############################################################################
## Copyright (c) Microsoft Corporation. All rights reserved.
## Licensed under the MIT license. See LICENSE file in the project root for full license information.
#############################################################################
#############################################################################
##
## Microsoft Windows PowerShell Scripting
## File: New-RemoteSession.ps1
## Purpose: This script creates a new PowerShell session on a remote machine for interactive purpose.
## Scenarios: 1) The server must have Windows Remote Management Server setup already
## 2) The Network should be set as "Private" Network
## Version: 1.0 (15 Feb, 2012)
##
##############################################################################
Param(
[string]$computerName,
[string]$userName, # "Administrator"
[string]$password # "Password01!"
)
#----------------------------------------------------------------------------
# Print execution information
#----------------------------------------------------------------------------
Write-Host "EXECUTING [New-RemoteSession.ps1]." -foregroundcolor cyan
Write-Host "`$computerName = $computerName"
Write-Host "`$userName = $userName"
Write-Host "`$password = $password"
#----------------------------------------------------------------------------
#Function: Show-ScriptUsage
#Usage : Describes the usage information and options
#----------------------------------------------------------------------------
function Show-ScriptUsage
{
Write-host
Write-host "Usage: This script creates a new PowerShell session on a remote machine for interactive purpose."
Write-host
Write-host "Example: New-RemoteSession.ps1 SUT01 username password"
Write-host
}
#----------------------------------------------------------------------------
# Verify Required parameters
#----------------------------------------------------------------------------
if ($args[0] -match '-(\?|(h|(help)))')
{
Show-ScriptUsage
return
}
#----------------------------------------------------------------------------
# Validate parameter
#----------------------------------------------------------------------------
if ($computerName -eq $null -or $computerName -eq "")
{
Throw "Parameter computerName is required."
}
#----------------------------------------------------------------------------
# Using default username/password when caller doesnot provide.
#----------------------------------------------------------------------------
if ($userName -eq $null -or $userName -eq "")
{
$userName = "$computerName\Administrator"
$password = "Password01!"
}
#----------------------------------------------------------------------------
# Create credentials object.
#----------------------------------------------------------------------------
$passwordConverted = ConvertTo-SecureString $password -AsPlainText -Force
$cred = New-Object System.Management.Automation.PSCredential $userName, $passwordConverted
#----------------------------------------------------------------------------
# Create new powershell session on the remote computer.
#----------------------------------------------------------------------------
$remoteSession = New-PSSession -ComputerName $computerName -Credential $cred
#----------------------------------------------------------------------------
# Print exit information. Show message of success.
#----------------------------------------------------------------------------
if($remoteSession -eq $null -or $remoteSession -eq "")
{
Write-Host "Remote Session Setup failed." -foregroundcolor Red
return $null
}
else
{
Write-Host "Remote Session Setup successfully." -foregroundcolor Green
return $remoteSession
}