2022-04-26 15:23:37 -07:00
|
|
|
# dumpcap
|
|
|
|
|
|
|
|
> A network traffic dump tool.
|
|
|
|
> More information: <https://www.wireshark.org/docs/man-pages/dumpcap.html>.
|
|
|
|
|
|
|
|
- Display available interfaces:
|
|
|
|
|
2025-04-22 15:48:30 +03:00
|
|
|
`dumpcap {{[-D|--list-interfaces]}}`
|
2022-04-26 15:23:37 -07:00
|
|
|
|
|
|
|
- Capture packets on a specific interface:
|
|
|
|
|
2025-04-22 15:48:30 +03:00
|
|
|
`dumpcap {{[-i|--interface]}} {{1}}`
|
2022-04-26 15:23:37 -07:00
|
|
|
|
|
|
|
- Capture packets to a specific location:
|
|
|
|
|
2025-04-22 15:48:30 +03:00
|
|
|
`dumpcap {{[-i|--interface]}} {{1}} -w {{path/to/output_file.pcapng}}`
|
2022-04-26 15:23:37 -07:00
|
|
|
|
|
|
|
- Write to a ring buffer with a specific max file limit of a specific size:
|
|
|
|
|
2025-04-22 15:48:30 +03:00
|
|
|
`dumpcap {{[-i|--interface]}} {{1}} -w {{path/to/output_file.pcapng}} {{[-b|--ring-buffer]}} filesize:{{500000}} {{[-b|--ring-buffer]}} files:{{10}}`
|