- Python 3.8+
- SQLMap (must be installed globally on your system)
- Internet connection (for cloud AI providers)
- 2GB+ RAM (for Ollama local models)
First, install SQLMap globally on your system:
# Kali/Debian/Ubuntu
sudo apt install sqlmap
# macOS
brew install sqlmap
# Or from source
git clone https://github.com/sqlmapproject/sqlmap.git
cd sqlmap
sudo python setup.py install
# Verify installation
sqlmap --version# Clone the repository
git clone https://github.com/atiilla/sqlmap-ai.git
cd sqlmap-ai
# Install the package
pip install -e .
# Or install from PyPI
pip install sqlmap-ai
# Run installation check (creates config files)
sqlmap-ai --install-checkChoose one or more AI providers to use:
- Get a free API key from https://console.groq.com
- Add to your
.envfile:
GROQ_API_KEY=your_groq_api_key_here- Get an API key from https://platform.deepseek.com
- Add to your
.envfile:
DEEPSEEK_API_KEY=your_deepseek_api_key_here- Get an API key from https://platform.openai.com
- Add to your
.envfile:
OPENAI_API_KEY=your_openai_api_key_here- Get an API key from https://console.anthropic.com
- Add to your
.envfile:
ANTHROPIC_API_KEY=your_anthropic_api_key_here- Install Ollama: https://ollama.ai/download
- Start Ollama service:
ollama serve- Download a model:
ollama pull llama3.2- Enable in your
.envfile:
ENABLE_OLLAMA=true
OLLAMA_MODEL=llama3.2If using Ollama, you can select different models:
# List available models
sqlmap-ai --list-ollama-models
# Interactive model selection
sqlmap-ai --config-wizardPopular models:
- llama3.2 - Good general performance
- codellama - Specialized for code analysis
- mistral - Fast and efficient
- qwen2.5 - Good reasoning capabilities
# Interactive setup
sqlmap-ai --config-wizardThis will:
- Check your AI provider setup
- Let you select Ollama models (if using Ollama)
- Configure security settings
- Set up SQLMap options
# Check if everything is working
sqlmap-ai --check-providers
# List available Ollama models (if using Ollama)
sqlmap-ai --list-ollama-models| Provider | Setup | Speed | Privacy | Cost |
|---|---|---|---|---|
| Groq | API Key | Fastest | Cloud | Free tier available |
| DeepSeek | API Key | Fast | Cloud | Affordable |
| OpenAI | API Key | Fast | Cloud | Pay per use |
| Anthropic | API Key | Fast | Cloud | Pay per use |
| Ollama | Local install | Fast | Local | Free |