https://github.com/mohabdo21/domain-insight
A command-line tool for retrieving and displaying detailed information about domains. This script provides insights into WHOIS data, DNS records, IP addresses, and SSL certificates, making it an essential resource for web administrators and security professionals.
https://github.com/mohabdo21/domain-insight
bash batch-script command-line-tool data-retrieval dns domain domain-info networking python security ssl sysadmin whois windows
Last synced: 12 months ago
JSON representation
A command-line tool for retrieving and displaying detailed information about domains. This script provides insights into WHOIS data, DNS records, IP addresses, and SSL certificates, making it an essential resource for web administrators and security professionals.
- Host: GitHub
- URL: https://github.com/mohabdo21/domain-insight
- Owner: Mohabdo21
- Created: 2024-10-18T13:53:19.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-13T08:00:15.000Z (about 1 year ago)
- Last Synced: 2025-04-13T09:18:51.014Z (about 1 year ago)
- Topics: bash, batch-script, command-line-tool, data-retrieval, dns, domain, domain-info, networking, python, security, ssl, sysadmin, whois, windows
- Language: Python
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# π΅οΈ Check WHOIS Script
## π Overview
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!
## π― Purpose
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**.
## β¨ Features
### **Python Script (`check_whois.py`)**:
- π 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.
### **Bash Script (`check_whois.sh`)**:
- π οΈ Interactive menu for streamlined info retrieval.
- β Exit confirmation for safe termination.
- π» Suitable for shell scripting pros.
### **Batch Script (`check_whois.bat`)** (Windows):
- π±οΈ Interactive Windows-style menu.
- β
Supports WHOIS, DNS, IP Address, and SSL retrieval.
- π Ensures required tools (`whois`, `nslookup`, `openssl`) are in your system path.
## π₯οΈ Setup on Windows (WHOIS and OpenSSL)
### π¦ Setting Up WHOIS:
1. Download the WHOIS tool from [Microsoft Sysinternals](https://learn.microsoft.com/en-us/sysinternals/downloads/whois).
2. Extract and place `whois64.exe` in a directory of your choice.
3. Add this directory to your system's environment `Path` variables.
### π Setting Up OpenSSL:
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.
## π¦ Installation
### Python Script:
Ensure you have **Python 3** installed. Install the necessary libraries with:
```bash
# Optionally create a virtual environment
python3 -m venv .venv
source .venv/bin/activate
# Install dependencies
pip install -r requirements.txt
```
For **Bash**, ensure you have `whois`, `dig`, `getent`, and `openssl` installed.
## π οΈ Usage
### Python Script
```bash
./check_whois.py [--output-to-file]
```
#### Parameters:
- ``: Domain name to retrieve information for (e.g., example.com).
- `--output-to-file`: Optional flag to save the result to `domain_info.txt`.
#### Example:
```bash
./check_whois.py example.com
./check_whois.py example.com --output-to-file
```
### Bash Script:
```bash
./check_whois.sh
```
#### Example:
```bash
./check_whois.sh example.com
```
### Windows Batch Script:
```cmd
check_whois.bat
```
#### Example:
```cmd
check_whois.bat example.com
```
## βοΈ How It Works
### Python Script:
- **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.
### Bash and Batch Scripts:
Both scripts feature an **interactive menu** for retrieving specific domain info and prompt for confirmation before exiting.
## π Conclusion
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.