The check_whois.py, check_whois.sh, and check_whois.bat scripts are robust command-line tools designed to retrieve comprehensive information about a domain. Whether you're a web admin, security enthusiast, or simply curious, these scripts provide insights into WHOIS data, DNS records, IP addresses, and SSL certificate details. Choose the tool that fits your workflow—be it Python, Bash, or Windows Batch!
Easily gather detailed domain information with these scripts. Whether troubleshooting, conducting security assessments, or managing domains, this suite equips you with the tools to get the job done quickly and efficiently.
- 🔍 Retrieve WHOIS details of any domain.
- 🌐 Display DNS records: A, AAAA, MX, NS, TXT.
- 🖥️ Fetch associated IP addresses.
- 🔐 Retrieve SSL certificate information.
- 📂 Flexible output options: view in terminal or save to a file.
- 🛠️ Interactive menu for streamlined info retrieval.
- ⛔ Exit confirmation for safe termination.
- 💻 Suitable for shell scripting pros.
- 🖱️ Interactive Windows-style menu.
- ✅ Supports WHOIS, DNS, IP Address, and SSL retrieval.
- 🔗 Ensures required tools (
whois,nslookup,openssl) are in your system path.
- Download the WHOIS tool from Microsoft Sysinternals.
- Extract and place
whois64.exein a directory of your choice. - Add this directory to your system's environment
Pathvariables.
OpenSSL binaries are included with Git for Windows. Locate it in C:\Program Files\Git\usr\bin\openssl.exe and add this path to your system environment variables.
Ensure you have Python 3 installed. Install the necessary libraries with:
# Optionally create a virtual environment
python3 -m venv .venv
source .venv/bin/activate
# Install dependencies
pip install -r requirements.txtFor Bash, ensure you have whois, dig, getent, and openssl installed.
./check_whois.py <domain> [--output-to-file]<domain>: Domain name to retrieve information for (e.g., example.com).--output-to-file: Optional flag to save the result todomain_info.txt.
./check_whois.py example.com
./check_whois.py example.com --output-to-file./check_whois.sh <domain>./check_whois.sh example.comcheck_whois.bat <domain>check_whois.bat example.com- DomainInfo Class: Handles WHOIS, DNS, IP, and SSL retrieval.
- Menu Class: An interactive interface guiding the user through options.
- Main Loop: Accepts a domain as input, processes requests, and outputs results.
Formatted with the prettytable library for readability and styled using colorama for colored output.
Both scripts feature an interactive menu for retrieving specific domain info and prompt for confirmation before exiting.
Choose your weapon—Python, Bash, or Windows Batch! These scripts provide versatile tools for retrieving essential domain data, tailored for different environments. Whether you prefer the versatility of Python, the power of Bash, or the familiarity of Windows, these scripts have you covered.