set_decryption_keys
Set Wi-Fi decryption keys (WEP, WPA-PSK, etc.) for a loaded capture to enable decrypted packet analysis. Keys remain in memory and are applied when reading the capture.
Instructions
Configure Wi-Fi decryption keys for later packet analysis.
Keys exist only in server memory and are passed to TShark whenever the
capture is read. Secret values are never included in tool responses or
normal logs. Supported key types are wep, wpa-pwd, wpa-psk,
tk, and msk.
Args:
capture_id: ID of a currently loaded capture.
keys: Key objects containing key_type and value. For example,
[{"key_type": "wpa-pwd", "value": "password:SSID"}].
replace_existing: Replace existing keys when true; append when false.
Passing an empty list with true clears all keys.
Returns: Capture ID, configured key count, and key types. Values are omitted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | Yes | ||
| capture_id | Yes | ||
| replace_existing | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||