Features • Installation • Usage • Configuration • Examples • Contributing
-
🔍 Advanced Subdomain Enumeration
- Multi-threaded DNS resolution
- Custom wordlist support
- Configurable timeout and retry settings
- Support for multiple DNS record types (A, AAAA, CNAME)
-
🤖 AI-Powered Risk Assessment
- Powered by Cohere's advanced language models
- Intelligent scoring of subdomains based on security relevance
- Detailed reasoning for each risk score
- Customizable scoring criteria
-
📊 Comprehensive Reporting
- Interactive HTML reports
- JSON export for integration
- Detailed subdomain information
- Risk score breakdowns
- IP address and DNS record information
- Clone the repository:
git clone https://github.com/OCEANOFANYTHING/SmartSubAI.git
cd SmartSubAI- Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install dependencies:
pip install -r requirements.txt-
Configure your Cohere API key:
- Get your API key from Cohere
- Add it to
config/settings.inior set theSMARTSUBAI_COHERE_KEYenvironment variable
Basic usage:
python smartsubai.py -d example.comAdvanced options:
python smartsubai.py -d example.com -w custom_wordlist.txt --threads 20 --limit 100-d, --domain: Target domain to enumerate (required)-w, --wordlist: Path to custom wordlist file--threads: Number of threads for parallel enumeration (default: 10)--limit: Maximum number of subdomains to enumerate--no-limit: Remove subdomain limit--test: Run in test mode (uses mock data)--output-dir: Custom directory for saving results
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- Basic scan:
python smartsubai.py -d example.com- Custom wordlist:
python smartsubai.py -d example.com -w wordlists/custom.txt- High-performance scan:
python smartsubai.py -d example.com --threads 20 --no-limit- Limited scan:
python smartsubai.py -d example.com --limit 50We welcome contributions! Please see our Contributing Guidelines for details.
This project is licensed under the MIT License - see the LICENSE file for details.
