Skip to content

Recon tool to check for specific txt/spf records on domains

Notifications You must be signed in to change notification settings

hitem/txtchecker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 

Repository files navigation

TXTChecker

TXTChecker is a tool designed to check domains for specific TXT records (such as SPF records) stored in DNS. It can generate random domain names or use a provided word list to form domain names with specified TLDs. The tool queries DNS servers for TXT records and identifies domains with the specified TXT record.

txtchecker

Install

git clone https://github.com/hitem/txtchecker.git
cd txtchecker
python3 .\txtchecker.py -h

Usage

> python3 .\txtchecker.py [OPTIONS]
> python3 .\txtchecker.py -h [--help]

Options

-l, --list: Path to the word list file.
-w, --workers: Number of concurrent threads (default: 10).
-a, --auto: Enable auto mode for random domain generation (3-8 character)
-t, --time: Run time in seconds for auto mode (used together with -a for time limited run).
-d, --dns: DNS server to use for queries (required).
-x, --txt: TXT record to look for (required).
--tlds: Comma-separated list of TLDs to use (default: .com,.se,.no,.dk).

Dependencies

The tool requires the following Python dependencies:

  • dnspython
  • colorama
  • unidecode

To install these dependencies, run:

pip install dnspython colorama unidecode

How It Works

  1. Initialization: The tool initializes dependencies and parses command-line arguments.
  2. Domain Generation:
    A. In auto mode, generates random domain names of lengths between 3 and 8 characters.
    B. If a word list is provided, generates domain names by appending TLDs to words in the list.
  3. DNS Queries: Concurrently queries the specified DNS server for TXT records of the generated domains.
  4. TXT Record Check: Compares the TXT records to the specified TXT record.
  5. Real-time Updates: Displays the number of processed domains and elapsed time in real-time 2024-05-18_20-30-10
  6. Output: Prints domains with the specified TXT record and saves them to successful_domains.txt.

About

Recon tool to check for specific txt/spf records on domains

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages