Skip to content

Commit 094cab5

Browse files
committed
Fix dns resolution when finding 2025 dc
1 parent 5da5bf1 commit 094cab5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nxc/modules/badsuccessor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def on_login(self, context, connection):
187187
for dc in parsed_resp:
188188
if "2025" in dc["operatingSystem"]:
189189
out = connection.resolver(dc["dNSHostName"])
190-
dc_ip = out[0] if out else "Unknown IP"
190+
dc_ip = out["host"] if out else "Unknown IP"
191191
context.log.success(f"Found domain controller with operating system Windows Server 2025: {dc_ip} ({dc['dNSHostName']})")
192192
else:
193193
context.log.fail("No domain controller with operating system Windows Server 2025 found, attack not possible. Enumerate dMSA objects anyway.")

0 commit comments

Comments
 (0)