#!/usr/bin/env python import sys import argparse import getpass import re import socket from impacket.structure import Structure import ldap3 import dns.resolver from collections import defaultdict class DNS_RECORD(Structure): """ dnsRecord - used in LDAP [MS-DNSP] section 2.3.2.2 impacket based structure, all of the below are tuples in format (fieldName, format) """ structure = ( ('DataLength', 'L'), ('Reserved', '