Skip to content

Commit 2ac20c4

Browse files
committed
Fix enum_dns wmi query
1 parent 82f8967 commit 2ac20c4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nxc/modules/enum_dns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def on_admin_login(self, context, connection):
3838

3939
for domain in domains:
4040
output = connection.wmi_query(
41-
f"Select TextRepresentation FROM MicrosoftDNS_ResourceRecord WHERE DomainName = {domain}",
41+
f"Select TextRepresentation FROM MicrosoftDNS_ResourceRecord WHERE DomainName = '{domain}'",
4242
"root\\microsoftdns",
4343
)
4444

0 commit comments

Comments
 (0)