Skip to content

gwen001/dnsexpire

Repository files navigation

dnsexpire

PHP tool to test CNAME expiration date of a subdomain list.

python badge php badge MIT license badge twitter badge


Install

git clone https://github.com/gwen001/dnsexpire

Usage

Usage: php dnsexpire.php [OPTIONS] -f <subdomain|input file>

Options:
	-a	set alert for result output, default=30 days
	-f	subdomains list source file
	-h	print this help

Examples:
	php dnsexpire.php -f example.com
	php dnsexpire.php -a 10 -f dns.txt

Note

dnsexpire.py is the Python version of the script. It's much faster but not sure how reliable it is.

$ python3 dnsexpire.py -o <hosts.txt>
usage: dnsexpire.py [-h] [-a] [-o HOST] [-t THREADS] [-v VERBOSE]

options:
  -h, --help            show this help message and exit
  -a, --all             also test dead hosts and non alias
  -o HOST, --host HOST  set host, can be a file or single host
  -t THREADS, --threads THREADS
                        threads, default 10
  -v VERBOSE, --verbose VERBOSE
                        display output, can be: 0=everything, 1=only alias, 2=only possible vulnerable, default 1


Feel free to open an issue if you have any problem with the script.