Metadata-Version: 2.4
Name: sqlmap-ai
Version: 2.0.8
Summary: AI-powered SQL injection testing tool with multiple AI providers
Home-page: https://github.com/atiilla/sqlmap-ai
Author: Atilla
Author-email: Atilla <attilla@tuta.io>
Maintainer-email: Atilla <attilla@tuta.io>
License-Expression: MIT
Project-URL: Homepage, https://github.com/atiilla/sqlmap-ai
Project-URL: Documentation, https://github.com/atiilla/sqlmap-ai#readme
Project-URL: Repository, https://github.com/atiilla/sqlmap-ai.git
Project-URL: Issues, https://github.com/atiilla/sqlmap-ai/issues
Keywords: sqlmap,sql-injection,security,ai,penetration-testing,cybersecurity
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Information Technology
Classifier: Intended Audience :: System Administrators
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Security
Classifier: Topic :: System :: Systems Administration
Classifier: Topic :: Internet :: WWW/HTTP :: HTTP Servers
Classifier: Topic :: Software Development :: Testing
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: python-dotenv>=1.0.0
Requires-Dist: groq>=0.4.0
Requires-Dist: requests>=2.31.0
Requires-Dist: openai>=1.3.0
Requires-Dist: anthropic>=0.8.0
Requires-Dist: pyyaml>=6.0.1
Requires-Dist: rich>=13.0.0
Requires-Dist: jinja2>=3.1.2
Requires-Dist: cryptography>=3.4.0
Requires-Dist: colorama>=0.4.6
Requires-Dist: waitress>=2.1.0
Provides-Extra: dev
Requires-Dist: pytest>=7.0.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
Requires-Dist: black>=23.0.0; extra == "dev"
Requires-Dist: flake8>=6.0.0; extra == "dev"
Requires-Dist: mypy>=1.0.0; extra == "dev"
Provides-Extra: local-llm
Requires-Dist: transformers>=4.35.0; extra == "local-llm"
Requires-Dist: torch>=2.1.0; extra == "local-llm"
Provides-Extra: reporting
Requires-Dist: plotly>=5.0.0; extra == "reporting"
Requires-Dist: pandas>=2.0.0; extra == "reporting"
Provides-Extra: all
Requires-Dist: pytest>=7.0.0; extra == "all"
Requires-Dist: pytest-asyncio>=0.21.0; extra == "all"
Requires-Dist: black>=23.0.0; extra == "all"
Requires-Dist: flake8>=6.0.0; extra == "all"
Requires-Dist: mypy>=1.0.0; extra == "all"
Requires-Dist: transformers>=4.35.0; extra == "all"
Requires-Dist: torch>=2.1.0; extra == "all"
Requires-Dist: plotly>=5.0.0; extra == "all"
Requires-Dist: pandas>=2.0.0; extra == "all"
Dynamic: author
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-python

# 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
- [x] **Private Network Scanning** - Local/private IP targets now allowed by default
- [x] **Configurable Network Policy** - New `allow_private_networks` security setting
- [x] **Improved Test Coverage** - Added dedicated tests for private network validation

> See the full [Changelog](docs/CHANGELOG.md) for previous versions.

<img src="sqlmap.gif"/>

## Quick Start

**1. Install SQLMap:**
```bash
sudo apt install sqlmap    # Debian/Ubuntu/Kali
brew install sqlmap         # macOS
```

**2. Install SQLMap AI:**
```bash
pip install sqlmap-ai
sqlmap-ai --install-check
```

**3. Set an API key** in your `.env` file (e.g., Groq - free & fastest):
```bash
GROQ_API_KEY=your_groq_api_key_here
```

**4. Run:**
```bash
sqlmap-ai -u "http://example.com/page.php?id=1"
```

> See the full [Installation Guide](docs/INSTALLATION.md) for all providers and options.

## Documentation

| Guide | Description |
|-------|-------------|
| [Installation](docs/INSTALLATION.md) | Prerequisites, setup, AI provider configuration |
| [Usage](docs/USAGE.md) | Examples, testing modes, request files, workflows |
| [Configuration](docs/CONFIGURATION.md) | `.env`, `config.yaml`, command-line reference |
| [Troubleshooting](docs/TROUBLESHOOTING.md) | Common issues and getting help |
| [Changelog](docs/CHANGELOG.md) | Version history |

## Requirements

- Python 3.8+
- SQLMap (must be installed globally on your system)
  - Kali/Debian/Ubuntu: `sudo apt install sqlmap`
  - macOS: `brew install sqlmap`
  - From source: [github.com/sqlmapproject/sqlmap](https://github.com/sqlmapproject/sqlmap)
- 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](https://api.star-history.com/svg?repos=atiilla/sqlmap-ai&type=Date)](https://www.star-history.com/#atiilla/sqlmap-ai&Date)
