This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
from dnslib import RR, QTYPE, DNSRecord, DNSHeader, TXT | |
from time import time | |
DOMAIN = "REPLACE_WITH_YOUR_SUBDOMAIN" | |
def parse_response(data): | |
temp = DNSRecord.parse(data) | |
req = str(temp.q.qname) | |
subdomain = req.replace(DOMAIN, "") |