This script automates SQL injection testing using SQLMap with AI-powered decision making.
Find a file
atiilla 4d160d4d29 Enhance SQLMap API Runner and Parser
- Updated `extract_dumped_data` regex to handle table data more effectively.
- Switched to `waitress` for the SQLMap API server to ensure compatibility with Python 3.13+.
- Improved handling of request files, distinguishing between Burp XML logs and raw HTTP requests.
- Added support for additional command-line options in the SQLMap API Runner.
- Implemented utility methods to safely convert string representations to lists and dictionaries.
- Enhanced output formatting for API data, including better handling of database and table dumps.
- Introduced a new test file for Burp XML log format to validate the changes.
2026-02-07 22:08:33 +01:00
docs Refactor code structure for improved readability and maintainability 2026-02-07 13:39:43 +01:00
sqlmap_ai Enhance SQLMap API Runner and Parser 2026-02-07 22:08:33 +01:00
tests Added allow_private_networks setting to SecurityConfig for controlling access to local/private IPs. 2026-02-07 12:57:53 +01:00
utils Added deepseek option 2026-02-07 13:38:01 +01:00
.env.template updated 2025-11-14 00:39:01 +01:00
.gitignore Added deepseek option 2026-02-07 13:38:01 +01:00
.sqlmap_ai_first_run Added deepseek option 2026-02-07 13:38:01 +01:00
config.yaml Enhance SQLMap API Runner and Parser 2026-02-07 22:08:33 +01:00
LICENSE Add example output and scan history to README.md 2025-03-29 19:59:37 +01:00
mkdocs.yml Added deepseek option 2026-02-07 13:38:01 +01:00
pyproject.toml Enhance SQLMap API Runner and Parser 2026-02-07 22:08:33 +01:00
README.md Added deepseek option 2026-02-07 13:38:01 +01:00
requirements.txt Enhance SQLMap API Runner and Parser 2026-02-07 22:08:33 +01:00
setup.py updated 2025-11-14 00:39:01 +01:00
sqlmap.gif Update README with new features and add sqlmap.gif; modify testphp.txt for updated request 2025-08-25 23:59:39 +02:00
testphp.txt Update README with new features and add sqlmap.gif; modify testphp.txt for updated request 2025-08-25 23:59:39 +02:00
testphp_login.txt Enhance SQLMap API Runner and Parser 2026-02-07 22:08:33 +01:00

SQLMap AI Assistant

An AI-powered wrapper around SQLMap that makes SQL injection testing more accessible and automated.

Features

Core Features

  • AI-Assisted Testing - Intelligent vulnerability analysis and recommendations
  • Adaptive Testing - Step-by-step testing that adapts to target responses
  • Enhanced HTML Reports - Beautiful, detailed reports with vulnerability details
  • Parameter Targeting - Test specific parameters with -p option (like original SQLMap)
  • WAF Bypass - Automatic tamper script selection for firewall evasion
  • Database Enumeration - Complete database, table, and column discovery
  • Request File Support - Test from Burp Suite, ZAP, or browser captures

AI Providers

  • Groq - Fastest AI analysis (recommended)
  • DeepSeek - Affordable and capable analysis
  • OpenAI - GPT-4 powered analysis
  • Anthropic Claude - Advanced reasoning
  • Ollama - Local, private AI (no cloud required)

New in v2.0.6

  • Private Network Scanning - Local/private IP targets now allowed by default
  • Configurable Network Policy - New allow_private_networks security setting
  • Improved Test Coverage - Added dedicated tests for private network validation

See the full Changelog for previous versions.

Quick Start

1. Install SQLMap:

sudo apt install sqlmap    # Debian/Ubuntu/Kali
brew install sqlmap         # macOS

2. Install SQLMap AI:

pip install sqlmap-ai
sqlmap-ai --install-check

3. Set an API key in your .env file (e.g., Groq - free & fastest):

GROQ_API_KEY=your_groq_api_key_here

4. Run:

sqlmap-ai -u "http://example.com/page.php?id=1"

See the full Installation Guide for all providers and options.

Documentation

Guide Description
Installation Prerequisites, setup, AI provider configuration
Usage Examples, testing modes, request files, workflows
Configuration .env, config.yaml, command-line reference
Troubleshooting Common issues and getting help
Changelog Version history

Requirements

  • Python 3.8+
  • SQLMap (must be installed globally on your system)
  • Internet connection (for cloud AI providers)
  • 2GB+ RAM (for Ollama local models)

License

This project is licensed under the MIT License.

Disclaimer

This tool is intended for educational and ethical hacking purposes only. Always obtain permission before testing any system or application. The developers are not responsible for any misuse or damage caused by this tool.

Star History

Star History Chart