capture_and_decrypt
Capture live TLS traffic and decrypt it using a key log file to view plaintext HTTP/application data in real time.
Instructions
Capture live TLS traffic and immediately show decrypted plaintext.
This tool saves the capture to a PCAP file and then decrypts it using the provided TLS key log file. The application generating traffic must write its session keys to keylog_file during capture (set SSLKEYLOGFILE env var before launching Chrome, Firefox, curl, Python, etc.).
Workflow:
Set SSLKEYLOGFILE=C:/path/keys.log before launching the target app
Call this tool pointing at the same keys.log
Browse or make HTTPS requests in the target app
The tool returns decrypted HTTP/application data
Args: interface: Network interface to capture on (from list_interfaces) keylog_file: Path to the TLS key log file written by the target app output_pcap: Path where the captured PCAP will be saved for later analysis packet_count: Number of packets to capture (default: 200, max: 500) duration: Capture duration in seconds (default: 30, max: 60) display_filter: Optional display filter (e.g. "tls" or "tcp.port == 443")
Returns: Summary of captured packets and decrypted TLS stream content
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| duration | No | ||
| interface | Yes | ||
| keylog_file | Yes | ||
| output_pcap | Yes | ||
| packet_count | No | ||
| display_filter | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |