mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
14 lines
404 B
Markdown
14 lines
404 B
Markdown
![]() |
# sniff.py
|
||
|
|
||
|
> Capture and display network packets using the pcapy library.
|
||
|
> 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:
|
||
|
|
||
|
`sudo sniff.py | sudo tee {{output_file}}`
|