Skip to content

Commit 31acd22

Browse files
authored
Merge pull request Pennyw0rth#737 from Pennyw0rth/neff-fix-badsuccessor
2 parents 2cd67b9 + 094cab5 commit 31acd22

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)