This script is used to check the status of subdomains of a root domain. It uses sublist3r
to find subdomains and requests
to check the HTTP status of those subdomains.
Make sure you have Python 3.x installed on your system. You also need to install some required Python libraries.
-
Clone this repository or download the script files.
-
Install the required libraries using
pip
:pip install -r requirements.txt
Contents of
requirements.txt
:requests sublist3r colorama
-
If you don't have
pip
, you can install it by following the instructions here.
-
Run the
main.py
script:python main.py
-
Enter the root domain you want to check when prompted:
Please enter your root domain: example.com
-
The script will display a results table showing the status of subdomains and a summary table showing the number of active and inactive subdomains.
Example output:
------------------------------------------------------------ | ROOT DOMAIN | STATUS | SUBDOMAIN | ------------------------------------------------------------ | example.com | 200 | www.example.com | | example.com | 503 | api.example.com | | example.com | 200 | blog.example.com | ------------------------------------------------------------ | ACTIVE | | INACTIVE | ------------------------------------------------------------ | 2 | | 1 | ------------------------------------------------------------
- If the
colorama
library is not installed, the script will still run but without colored output. - If you encounter connection issues, the subdomain status will be displayed as
503
.
If you would like to contribute to this project, please fork this repository and create a pull request with your changes.
This project is licensed under the MIT License. See the LICENSE file for more information.