pdknockr

- a passive dns drive-by tool 🏎️💨
git clone git://git.acid.vegas/pdknockr.git
Log | Files | Refs | Archive | README

README.md (3162B)

      1 # pdKnockr
      2 > A passive DNS "drive-by" tool
      3 
      4 This tool is designed to detect passive DNS servers that are logging DNS queries by performing targeted subdomain lookups on a list of specified DNS resolvers. The core functionality of the program lies in its ability to generate unique subdomains using a seed value, ensuring that each query is distinct and traceable. This approach is particularly effective in identifying passive DNS servers, which typically log and store DNS queries for analysis and tracking purposes. By generating these unique queries, the tool can pinpoint which DNS resolvers are passively logging requests, a critical insight for network security analysis and privacy assessments.
      5 
      6 The program operates by accepting a list of DNS resolver addresses and a seed value for subdomain generation. It then asynchronously queries each resolver with a dynamically generated subdomain, based on the provided seed, targeting a specific domain. The asynchronous nature of the tool allows for high-throughput and efficient querying, making it suitable for scanning a large number of resolvers in a short period. Users should note that while this tool provides valuable insights into DNS logging practices, it should be used responsibly and in compliance with applicable network and privacy regulations. It serves as a powerful instrument for network administrators, security researchers, and privacy advocates to understand and evaluate the extent of passive DNS logging in their networks or across various resolvers.
      7 
      8 #### TLDR; DNS TRAFFIC IS BEING LOGGED GLOBALLY AND SOLD TO THREAT INTEL COMPANIES, WHO THEN PAYWALL THAT DATA. __DO SOMETHING ABOUT IT.__
      9 
     10 ## How it works
     11 When the program starts, it will generate a unique subdomain for each resolver.
     12 
     13 This list is saved as JSON data in a `dns_keys.txt` file.
     14 
     15 Th program will start firing off DNS queries to all the resolvers using the custom subdomain we made for each one:
     16 
     17 ![](.screens/preview.png)
     18 
     19 After testing across multiple IP addresses over time, if we ever see `download.event.supernets.org` show up on any passive DNS lookup engines, refer to our logs, which will show it was looked up on `151.202.0.84`, marking it as a DNS server that is actively logging all DNS queries that pass through.
     20 
     21 
     22 ## WORK IN PROGRESS (STAY TUNED)
     23 
     24 - [ ] Bind server running accepting wildcard DNS lookups on custom domain.
     25 - [ ] DNS-over-TLS *(DoT)* and DNS-over-HTTPS *(DoH)* support
     26 - [X] Hunt down specific DNS servers used by ISP's from an ASN lookup
     27 - [X] Any way to apply this to custom DNS servers used by VPNs?
     28 - [X] Noise generator to abuse known logging servers.
     29 - [X] Memory effiency attains via yielding generators to handle large input files
     30 
     31 This is all very theoretical right now, interested to see how this pans out.
     32 
     33 Stats and proof coming soon. Get fucking fucked white-ops 💯
     34 
     35 ___
     36 
     37 ###### Mirrors for this repository: [acid.vegas](https://git.acid.vegas/pdknockr) • [SuperNETs](https://git.supernets.org/acidvegas/pdknockr) • [GitHub](https://github.com/acidvegas/pdknockr) • [GitLab](https://gitlab.com/acidvegas/pdknockr) • [Codeberg](https://codeberg.org/acidvegas/pdknockr)