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/JoinDomainCreateAcctSAMR.sh
Shell · 1,441 bytes#!/bin/sh
#############################################################################
## Copyright (c) Microsoft Corporation. All rights reserved.
## Licensed under the MIT license. See LICENSE file in the project root for full license information.
#############################################################################
#####################################################################################################################
##
## File: JoinDomainCreateAcctSAMR.sh
## Purpose: To trigger the machine join domain by creating an account using SAMR.
#####################################################################################################################
# Check the argument number
if [ $# -ne 3 ]; then
{
cat<<HELP
JoinDomainCreateAcctSAMR -- To trigger the client join domain by creating an account using SAMR.
USAGE: JoinDomainCreateAcctSAMR fulldomainname username password
HELP
echo false
exit 1
}
fi
# Get the parameters
fulldomainname=$1
username=$2
password=$3
# Trigger the client to join domain
cd /usr/local/samba-master/bin
msg=`samba-tool domain join $fulldomainname MEMBER -U$username%$password --realm=$fulldomainname`
echo $msg
result=`echo $msg|grep -l "Joined domain"|wc -l`
# If result contains Joined domain ..., it indicates that the joining domain is successful
if [ $result -ne 0 ]; then
{
echo true
exit 0
}
else
{
echo "Not joined to any domain."
echo false
exit 1
}
fi