Inspection du trafic MITM

VérifiéSûr

Inspectez le trafic HTTP capturé par le proxy MITM. Permet de lister, filtrer et visualiser les détails des requêtes/réponses interceptées. Utile pour analyser l'activité réseau, déboguer des appels API ou exporter le trafic au format HAR.

Spar Skills Guide Bot
TestingIntermédiaire
6002/06/2026
Claude Code
#mitm-proxy#http-inspection#traffic-capture#network-debugging

Recommandé pour

Notre avis

Inspectez le trafic HTTP capturé par un proxy MITM en interrogeant une API REST pour lister, filtrer et visualiser les détails des requêtes/réponses.

Points forts

  • Filtrage par sous-chaîne d'URL
  • Affichage complet des en-têtes et corps des requêtes et réponses
  • Export au format HAR pour analyse externe
  • Possibilité d'effacer l'historique

Limites

  • Nécessite un proxy MITM en cours d'exécution sur localhost:8889
  • Ne fonctionne qu'avec le trafic intercepté
  • Pas de support pour WebSocket
Quand l'utiliser

Lorsque vous devez déboguer des appels réseau pendant le développement ou les tests.

Quand l'éviter

Lorsque vous avez besoin d'une surveillance en temps réel ou que le proxy MITM n'est pas configuré.

Analyse de sécurité

Sûr
Score qualité90/100

The skill only queries a local MITM proxy API on localhost for legitimate traffic inspection and uses bundled bash scripts. No destructive actions, exfiltration, or external network calls. The use of user-provided filter argument is low risk and handled by curl's query string.

Aucun point d'attention détecté

Exemples

List recent requests
Show me the last 10 HTTP requests captured by the MITM proxy.
Filter by domain
List all captured requests that contain api.example.com in the URL.
Inspect a specific request
Show me the full details of request ID 5 from the proxy, including headers and body.

name: mitm-inspect description: Inspect captured HTTP traffic from the MITM proxy. Use when the user wants to see what requests were made, filter traffic by URL, view request/response details, or analyze network activity. argument-hint: "[filter-pattern]" allowed-tools: Bash(bash *) Bash(curl *)

Inspect Captured Traffic

Use the MITM proxy REST API to list, filter, and inspect intercepted HTTP requests.

Arguments: $ARGUMENTS is an optional filter pattern (substring match on URL).

List requests

curl -s "http://localhost:8889/api/requests?filter=$ARGUMENTS&limit=20" | cat

Query params: | Param | Type | Default | Description | |-------|------|---------|-------------| | filter | string | (none) | Substring match on request URL | | limit | number | 100 | Max results to return | | offset | number | 0 | Pagination offset |

Response shape:

{
  "total": 42,
  "offset": 0,
  "limit": 20,
  "requests": [
    {
      "id": 1,
      "method": "GET",
      "url": "https://api.example.com/users",
      "status": 200,
      "duration": 145,
      "size": 2048,
      "timestamp": "2026-02-14T12:00:00.000Z",
      "modified": false,
      "blocked": false,
      "redirected": false,
      "transformed": false
    }
  ]
}

Get request detail

curl -s http://localhost:8889/api/requests/<ID> | cat

Replace <ID> with the numeric request ID from the list.

Response shape:

{
  "id": 1,
  "method": "GET",
  "url": "https://api.example.com/users",
  "timestamp": "2026-02-14T12:00:00.000Z",
  "duration": 145,
  "modified": false,
  "blocked": false,
  "redirected": false,
  "redirectTarget": null,
  "transformed": false,
  "request": {
    "headers": { "host": "api.example.com", "accept": "*/*" },
    "body": ""
  },
  "response": {
    "status": 200,
    "headers": { "content-type": "application/json" },
    "body": "{\"users\":[...]}"
  }
}

Clear request history

curl -s -X DELETE http://localhost:8889/api/requests | cat

Response: { "cleared": true }

Bundled scripts

Traffic summary

Get a breakdown of captured traffic by domain, status code, and timing:

bash skills/mitm-inspect/scripts/traffic-summary.sh "$ARGUMENTS"

Outputs domain counts, status code distribution, average/max duration, and modification stats.

Export as HAR

Export captured requests to a HAR-like JSON file for external tools:

bash skills/mitm-inspect/scripts/export-har.sh "$ARGUMENTS" 100 mitm-export.json

Arguments: [filter] [limit] [output-file]

Typical workflow

  1. List recent trafficcurl -s "http://localhost:8889/api/requests?limit=10"
  2. Filter by domaincurl -s "http://localhost:8889/api/requests?filter=api.example.com"
  3. Inspect a specific requestcurl -s http://localhost:8889/api/requests/5
  4. Check request/response bodies — look at .request.body and .response.body fields
  5. Get a traffic summarybash skills/mitm-inspect/scripts/traffic-summary.sh
  6. Export for analysisbash skills/mitm-inspect/scripts/export-har.sh
  7. Clear old trafficcurl -s -X DELETE http://localhost:8889/api/requests
Skills similaires