Security
Détecte les modèles d'attaque par injection SQL courants dans les chaînes d'entrée
Appelez cet outil depuis votre code en trois langages.
curl -X POST 'https://api.elysiatools.com/fr/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)"}'Envoyez une requête POST avec vos entrées en JSON. Les paramètres de type fichier nécessitent un upload préalable.
POST https://api.elysiatools.com/fr/api/tools/sql-injection-detector| Nom | Type | Requis | Description |
|---|---|---|---|
| text | textarea | Oui | — |
| caseSensitive | checkbox | Non | Enable case-sensitive pattern matching |
| checkComments | checkbox | Non | Detect SQL comment patterns (--, /*, */, #) |
| checkUnion | checkbox | Non | Detect UNION-based SELECT injection |
| checkTimeBased | checkbox | Non |
Ajoutez cet outil à votre serveur Model Context Protocol pour que les agents IA puissent le lister et l'appeler.
Ajoutez ce bloc à la configuration de votre client MCP :
{
"mcpServers": {
"elysiatools-sql-injection-detector": {
"name": "sql-injection-detector",
"description": "Détecte les modèles d'attaque par injection SQL courants dans les chaînes d'entrée",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=sql-injection-detector",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Après connexion au point d'accès SSE, listez les outils exposés :
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Appelez l'outil par son id ; les arguments sont construits à partir de ses paramètres :
{
"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 | Non | Detect boolean-based injection patterns |
| whitelist | text | Non | Patterns that should be considered safe (comma-separated) |
Résultat JSON
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Des questions ou un problème ? Contactez [email protected]