From 413e5cd5d092a1fc49cb0a19aa593c3f25cd9fe2 Mon Sep 17 00:00:00 2001 From: Alexander Neff Date: Fri, 26 Jul 2024 15:38:31 -0400 Subject: [PATCH] Fix display bug with ip and add creds to sccmhunter --- nxc/modules/sccm.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nxc/modules/sccm.py b/nxc/modules/sccm.py index d9b3fd03..de317d74 100644 --- a/nxc/modules/sccm.py +++ b/nxc/modules/sccm.py @@ -12,7 +12,9 @@ LDAP_MATCHING_RULE_IN_CHAIN = "1.2.840.113556.1.4.1941" class NXCModule: """ Implementation of the SCCM RECON-1 technique to find SCCM related objects in Active Directory. - See: https://github.com/subat0mik/Misconfiguration-Manager/blob/main/attack-techniques/RECON/RECON-1/recon-1_description.md + See: + https://github.com/subat0mik/Misconfiguration-Manager/blob/main/attack-techniques/RECON/RECON-1/recon-1_description.md + https://github.com/garrettfoster13/sccmhunter Module by @NeffIsBack """ @@ -187,7 +189,7 @@ class NXCModule: self.sccm_sites[mp["mSSMSSiteCode"]]["ManagementPoints"].append({ "cn": mp["cn"], "dNSHostName": mp["dNSHostName"], - "IPAddress": ip if ip else "-", + "IPAddress": ip["host"] if ip else "-", "mSSMSDefaultMP": mp["mSSMSDefaultMP"], })