Skip to content

Capture to pcap file in a temp directory#3

Open
msabramo wants to merge 1 commit into
0xKoda:mainfrom
msabramo:capture-to-temp-dir
Open

Capture to pcap file in a temp directory#3
msabramo wants to merge 1 commit into
0xKoda:mainfrom
msabramo:capture-to-temp-dir

Conversation

@msabramo
Copy link
Copy Markdown

@msabramo msabramo commented Jun 20, 2025

Without this I was getting permission errors:

Screenshot 2025-06-20 at 9 43 28 AM

Called capture_packets
Parameters:
  {
    "interface": "en0",
    "duration": 120
  }
Result:
  Error: Command failed: /opt/homebrew/bin/tshark -i en0 -w temp_capture.pcap -a duration:120
  Capturing on 'Wi-Fi: en0'
  tshark: The file to which the capture would be saved ("temp_capture.pcap") could not be opened: Read-only file system.
  0 packets captured

This is with Cursor 1.1.2 on Mac OS 14.2.1 (23C71):

Version: 1.1.2
VSCode Version: 1.96.2
Commit: 87ea1604be1f602f173c5fb67582e647fcef6c40
Date: 2025-06-13T00:30:10.108Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Darwin arm64 23.2.0

Without this I was getting permission errors:

```
Called capture_packets
Parameters:
  {
    "interface": "en0",
    "duration": 120
  }
Result:
  Error: Command failed: /opt/homebrew/bin/tshark -i en0 -w temp_capture.pcap -a duration:120
  Capturing on 'Wi-Fi: en0'
  tshark: The file to which the capture would be saved ("temp_capture.pcap") could not be opened: Read-only file system.
  0 packets captured
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant