Skip to content

A Python script to enumerate subdomains using the SecurityTrails API. It fetches subdomains of a specified domain and saves results to a file.

License

Notifications You must be signed in to change notification settings

pixilated730/subdir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Subdir - Subdomain Enumeration

Subdir is a Python script for enumerating subdomains using the SecurityTrails API. It allows users to quickly discover subdomains associated with a given domain by leveraging the SecurityTrails API.

How to Run

  1. Prerequisites: Ensure you have Python installed on your system.

  2. Permission and Installation:

    • Make the script executable:

      chmod +x subdir
      
    • Move the script to the bin directory (optional, for global usage):

      sudo mv subdir /usr/local/bin/subdir
      
  3. Usage:

    • To enumerate subdomains for a domain and save them to a file:
      subdir spaceX.com subdomains.txt
      
  4. Configuration Directory:

    • Upon running the script, a folder named .subdirconfig will be created in your home directory. This folder contains a file named config where users can store their SecurityTrails API key for authentication.

Note

  • For authentication, users need to provide their SecurityTrails API key. The key can be obtained from the SecurityTrails website.
  • The script periodically checks the usage of the SecurityTrails API and displays the usage information after every 5 hours.

About

A Python script to enumerate subdomains using the SecurityTrails API. It fetches subdomains of a specified domain and saves results to a file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages