SmartSubAI

SmartSubAI

Advanced Subdomain Enumeration with AI-Powered Risk Assessment

FeaturesInstallationUsageConfigurationExamplesContributing

Features

Installation

  1. Clone the repository:
git clone https://github.com/OCEANOFANYTHING/SmartSubAI.git
cd SmartSubAI
  1. Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Configure your Cohere API key:

    • Get your API key from Cohere
    • Add it to config/settings.ini or set the SMARTSUBAI_COHERE_KEY environment variable

Usage

Basic usage:

python smartsubai.py -d example.com

Advanced options:

python smartsubai.py -d example.com -w custom_wordlist.txt --threads 20 --limit 100

Command Line Arguments

Configuration

The tool can be configured through config/settings.ini:

[AI]
cohere_api_key = your_api_key_here
model = command-r7b-12-2024

[DNS]
timeout = 1
retries = 2
nameservers = 8.8.8.8,8.8.4.4,1.1.1.1,1.0.0.1

[Scanning]
max_threads = 10
max_subdomains = 200

Examples

  1. Basic scan:
python smartsubai.py -d example.com
  1. Custom wordlist:
python smartsubai.py -d example.com -w wordlists/custom.txt
  1. High-performance scan:
python smartsubai.py -d example.com --threads 20 --no-limit
  1. Limited scan:
python smartsubai.py -d example.com --limit 50

Contributing

We welcome contributions! Please see our Contributing Guidelines for details.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments