2025-04-03 20:36:56 -06:00
|
|
|
# sniff.py
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
> Capture and display network packets using the `pcapy` library.
|
2025-04-03 20:36:56 -06:00
|
|
|
> Part of the Impacket suite.
|
|
|
|
|
> More information: <https://github.com/fortra/impacket>.
|
|
|
|
|
|
|
|
|
|
- List available network interfaces and select one to start capturing packets (requires `sudo`):
|
|
|
|
|
|
|
|
|
|
`sudo sniff.py`
|
|
|
|
|
|
|
|
|
|
- Capture packets and save output to a file while displaying it on the terminal:
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
`sudo sniff.py | sudo tee {{path/to/output_file}}`
|