{"id":17941791,"url":"https://github.com/mohabdo21/domain-insight","last_synced_at":"2025-07-13T21:07:56.270Z","repository":{"id":258759692,"uuid":"874807808","full_name":"Mohabdo21/domain-insight","owner":"Mohabdo21","description":"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.","archived":false,"fork":false,"pushed_at":"2025-04-13T08:00:15.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-13T09:18:51.014Z","etag":null,"topics":["bash","batch-script","command-line-tool","data-retrieval","dns","domain","domain-info","networking","python","security","ssl","sysadmin","whois","windows"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mohabdo21.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-18T13:53:19.000Z","updated_at":"2025-04-13T08:00:18.000Z","dependencies_parsed_at":"2024-10-20T21:05:57.570Z","dependency_job_id":null,"html_url":"https://github.com/Mohabdo21/domain-insight","commit_stats":null,"previous_names":["mohabdo21/domain-insight"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Mohabdo21/domain-insight","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mohabdo21%2Fdomain-insight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mohabdo21%2Fdomain-insight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mohabdo21%2Fdomain-insight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mohabdo21%2Fdomain-insight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mohabdo21","download_url":"https://codeload.github.com/Mohabdo21/domain-insight/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mohabdo21%2Fdomain-insight/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265205760,"owners_count":23727511,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","batch-script","command-line-tool","data-retrieval","dns","domain","domain-info","networking","python","security","ssl","sysadmin","whois","windows"],"created_at":"2024-10-29T02:04:12.149Z","updated_at":"2025-07-13T21:07:56.242Z","avatar_url":"https://github.com/Mohabdo21.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🕵️ Check WHOIS Script\n\n## 🚀 Overview\n\nThe `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!\n\n## 🎯 Purpose\n\nEasily 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**.\n\n## ✨ Features\n\n### **Python Script (`check_whois.py`)**:\n\n- 🔍 Retrieve WHOIS details of any domain.\n- 🌐 Display DNS records: A, AAAA, MX, NS, TXT.\n- 🖥️ Fetch associated IP addresses.\n- 🔐 Retrieve SSL certificate information.\n- 📂 Flexible output options: view in terminal or save to a file.\n\n### **Bash Script (`check_whois.sh`)**:\n\n- 🛠️ Interactive menu for streamlined info retrieval.\n- ⛔ Exit confirmation for safe termination.\n- 💻 Suitable for shell scripting pros.\n\n### **Batch Script (`check_whois.bat`)** (Windows):\n\n- 🖱️ Interactive Windows-style menu.\n- ✅ Supports WHOIS, DNS, IP Address, and SSL retrieval.\n- 🔗 Ensures required tools (`whois`, `nslookup`, `openssl`) are in your system path.\n\n## 🖥️ Setup on Windows (WHOIS and OpenSSL)\n\n### 📦 Setting Up WHOIS:\n\n1. Download the WHOIS tool from [Microsoft Sysinternals](https://learn.microsoft.com/en-us/sysinternals/downloads/whois).\n2. Extract and place `whois64.exe` in a directory of your choice.\n3. Add this directory to your system's environment `Path` variables.\n\n### 🔒 Setting Up OpenSSL:\n\nOpenSSL 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.\n\n## 📦 Installation\n\n### Python Script:\n\nEnsure you have **Python 3** installed. Install the necessary libraries with:\n\n```bash\n# Optionally create a virtual environment\npython3 -m venv .venv\nsource .venv/bin/activate\n# Install dependencies\npip install -r requirements.txt\n```\n\nFor **Bash**, ensure you have `whois`, `dig`, `getent`, and `openssl` installed.\n\n## 🛠️ Usage\n\n### Python Script\n\n```bash\n./check_whois.py \u003cdomain\u003e [--output-to-file]\n```\n\n#### Parameters:\n\n- `\u003cdomain\u003e`: Domain name to retrieve information for (e.g., example.com).\n- `--output-to-file`: Optional flag to save the result to `domain_info.txt`.\n\n#### Example:\n\n```bash\n./check_whois.py example.com\n./check_whois.py example.com --output-to-file\n```\n\n### Bash Script:\n\n```bash\n./check_whois.sh \u003cdomain\u003e\n```\n\n#### Example:\n\n```bash\n./check_whois.sh example.com\n```\n\n### Windows Batch Script:\n\n```cmd\ncheck_whois.bat \u003cdomain\u003e\n```\n\n#### Example:\n\n```cmd\ncheck_whois.bat example.com\n```\n\n## ⚙️ How It Works\n\n### Python Script:\n\n- **DomainInfo Class**: Handles WHOIS, DNS, IP, and SSL retrieval.\n- **Menu Class**: An interactive interface guiding the user through options.\n- **Main Loop**: Accepts a domain as input, processes requests, and outputs results.\n\nFormatted with the `prettytable` library for readability and styled using `colorama` for colored output.\n\n### Bash and Batch Scripts:\n\nBoth scripts feature an **interactive menu** for retrieving specific domain info and prompt for confirmation before exiting.\n\n## 📋 Conclusion\n\nChoose 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.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohabdo21%2Fdomain-insight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohabdo21%2Fdomain-insight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohabdo21%2Fdomain-insight/lists"}