mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-15 07:59:57 +00:00
Update cheatsheets
This commit is contained in:
18
tldr/sniff.py
Normal file
18
tldr/sniff.py
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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}}`
|
||||
Reference in New Issue
Block a user