Security
Обнаруживает векторы атаки XSS (Cross-Site Scripting) во входных строках
Вызовите этот инструмент из своего кода на трёх языках.
curl -X POST 'https://api.elysiatools.com/ru/api/tools/xss-payload-detector' \
-H 'Content-Type: application/json' \
-d '{"text":"Enter text or code to scan for XSS attack vectors...","checkEventHandlers":true,"checkScriptTags":true,"checkProtocols":true,"checkEncoded":true,"decodeEntities":true,"maxDepth":3}'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/xss-payload-detector| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| text | textarea | Да | — |
| checkEventHandlers | checkbox | Нет | Detect onclick, onload, onerror, and other event handlers |
| checkScriptTags | checkbox | Нет | Detect <script> tags and related patterns |
| checkProtocols | checkbox | Нет | Detect javascript:, vbscript:, data: protocols |
| checkEncoded | checkbox | Нет |
Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.
Добавьте этот блок в конфигурацию вашего MCP-клиента:
{
"mcpServers": {
"elysiatools-xss-payload-detector": {
"name": "xss-payload-detector",
"description": "Обнаруживает векторы атаки XSS (Cross-Site Scripting) во входных строках",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=xss-payload-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": "xss-payload-detector",
"arguments": {
"text": "Enter text or code to scan for XSS attack vectors...",
"checkEventHandlers": true,
"checkScriptTags": true,
"checkProtocols": true,
"checkEncoded": true,
"decodeEntities": true,
"maxDepth": 3
}
}
}Вопросы или проблемы? Свяжитесь с [email protected]
| Detect URL-encoded and HTML entity-encoded attacks |
| decodeEntities | checkbox | Нет | Decode HTML entities and URL encoding before analysis |
| maxDepth | number | Нет | Maximum depth for nested pattern analysis |
JSON-результат
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}