Security
Обнаруживает распространенные паттерны атак SQL-инъекций во входных строках
Вызовите этот инструмент из своего кода на трёх языках.
curl -X POST 'https://api.elysiatools.com/ru/api/tools/sql-injection-detector' \
-H 'Content-Type: application/json' \
-d '{"text":"Enter text or code to scan for SQL injection patterns...","caseSensitive":false,"checkComments":true,"checkUnion":true,"checkTimeBased":true,"checkBoolean":true,"whitelist":"Comma-separated patterns to whitelist (e.g., SELECT user_id FROM users)"}'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/sql-injection-detector| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| text | textarea | Да | — |
| caseSensitive | checkbox | Нет | Enable case-sensitive pattern matching |
| checkComments | checkbox | Нет | Detect SQL comment patterns (--, /*, */, #) |
| checkUnion | checkbox | Нет | Detect UNION-based SELECT injection |
| checkTimeBased | checkbox | Нет |
Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.
Добавьте этот блок в конфигурацию вашего MCP-клиента:
{
"mcpServers": {
"elysiatools-sql-injection-detector": {
"name": "sql-injection-detector",
"description": "Обнаруживает распространенные паттерны атак SQL-инъекций во входных строках",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=sql-injection-detector",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}После подключения к SSE-endpoint выведите список доступных инструментов:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Вызовите инструмент по его id; аргументы формируются из его параметров:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "sql-injection-detector",
"arguments": {
"text": "Enter text or code to scan for SQL injection patterns...",
"caseSensitive": false,
"checkComments": true,
"checkUnion": true,
"checkTimeBased": true,
"checkBoolean": true,
"whitelist": "Comma-separated patterns to whitelist (e.g., SELECT user_id FROM users)"
}
}
}| Detect time-based injection (WAITFOR DELAY, SLEEP, BENCHMARK) |
| checkBoolean | checkbox | Нет | Detect boolean-based injection patterns |
| whitelist | text | Нет | Patterns that should be considered safe (comma-separated) |
JSON-результат
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Вопросы или проблемы? Свяжитесь с [email protected]