# Test a vulnerable website
sqlmap-ai -u "http://example.com/page.php?id=1"
# Use specific AI provider
sqlmap-ai -u "http://example.com/page.php?id=1" --ai-provider groq
# Test using HTTP request capture file
sqlmap-ai -r request.txt
# Enhanced mode with request file and adaptive testing
sqlmap-ai --enhanced --adaptive -r request.txt
# With specific AI provider
sqlmap-ai --enhanced -r request.txt --ai-provider groq
# Simple mode with request file
sqlmap-ai --simple -r request.txt
Request File Format:
POST /login.php HTTP/1.1
Host: example.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9
Content-Type: application/x-www-form-urlencoded
Content-Length: 38
username=admin&password=test
Creating Request Files:
Supported Request Types:
# Adaptive testing (recommended)
sqlmap-ai --enhanced --adaptive -u "http://example.com/page.php?id=1"
# Test specific parameter only
sqlmap-ai --enhanced -u "http://example.com/page.php?id=1&name=test" -p id
# Simple mode (basic SQLMap without AI)
sqlmap-ai --simple -u "http://example.com/page.php?id=1"
# Enhanced mode with custom options
sqlmap-ai --enhanced -u "http://example.com/page.php?id=1" --level 3 --risk 2
# Test with aggressive settings
sqlmap-ai --enhanced --aggressive -u "http://example.com/page.php?id=1"
# Stealth mode with slower, more evasive testing
sqlmap-ai --enhanced --stealth -u "http://example.com/page.php?id=1"
# Use Groq (fastest)
sqlmap-ai -u "http://example.com/page.php?id=1" --ai-provider groq
# Use Ollama (local, private)
sqlmap-ai -u "http://example.com/page.php?id=1" --ai-provider ollama
# Use OpenAI
sqlmap-ai -u "http://example.com/page.php?id=1" --ai-provider openai
# Auto-select best available
sqlmap-ai -u "http://example.com/page.php?id=1" --ai-provider auto
Test only specific parameters to save time and focus your testing:
# Test only the 'id' parameter
sqlmap-ai --enhanced -u "http://example.com/page.php?id=1&name=test" -p id
# Test multiple specific parameters
sqlmap-ai --enhanced -u "http://example.com/login?user=admin&pass=123&token=abc" -p user,pass
# Test with request file and specific parameter
sqlmap-ai --enhanced -r request.txt -p username
# Adaptive testing on specific parameter
sqlmap-ai --enhanced --adaptive -r request.txt -p id
Benefits:
# 1. Basic scan with URL
sqlmap-ai --enhanced -u "http://example.com/page.php?id=1"
# 2. Test specific parameter only
sqlmap-ai --enhanced -u "http://example.com/page?id=1&name=test" -p id
# 3. Enhanced scan with request file
sqlmap-ai --enhanced --adaptive -r captured_request.txt
# 4. Advanced scan with custom options
sqlmap-ai --enhanced -r request.txt --level 4 --risk 3 --threads 10
# 5. Simple mode for quick testing
sqlmap-ai --simple -r request.txt --batch
Full AI-powered testing with advanced features:
# Basic enhanced scan
sqlmap-ai --enhanced -u "http://example.com/page.php?id=1"
# With request file
sqlmap-ai --enhanced -r request.txt
# Adaptive testing with AI analysis
sqlmap-ai --enhanced --adaptive -r request.txt --ai-provider groq
Features:
-p optionEnhanced HTML Reports Include:
Basic SQL injection testing without AI features:
# Basic simple scan
sqlmap-ai --simple -u "http://example.com/page.php?id=1"
# With request file
sqlmap-ai --simple -r request.txt
# Quick batch mode
sqlmap-ai --simple -r request.txt --batch
Features:
Intelligent step-by-step testing that adapts to the target:
# Full adaptive testing
sqlmap-ai --enhanced --adaptive -r request.txt
# With specific AI provider
sqlmap-ai --enhanced --adaptive -r request.txt --ai-provider groq
Adaptive Steps:
Automatically adapts testing strategy based on target response and discovered information:
# Enable adaptive mode
sqlmap-ai --enhanced --adaptive -u "http://example.com/page.php?id=1"
# With request file
sqlmap-ai --enhanced --adaptive -r request.txt
# With specific parameter
sqlmap-ai --enhanced --adaptive -r request.txt -p id
How Adaptive Testing Works:
The adaptive engine intelligently sequences through 6 testing phases, adjusting strategy based on what it discovers:
Each step builds on previous discoveries, ensuring efficient and thorough testing while minimizing unnecessary requests.