Files
cheatsheet-tldr/tldr/sniffer.py
2025-05-29 00:20:08 +00:00

23 lines
525 B
Python

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# sniffer.py
> Capture and display network packets for specified protocols using raw sockets.
> Part of the Impacket suite.
> More information: <https://github.com/fortra/impacket>.
- Capture packets for default protocols (ICMP, TCP, UDP):
`sniffer.py`
- Capture packets for specific protocols (e.g., ICMP, TCP):
`sniffer.py {{protocol1 protocol2 ...}}`
- Capture packets for specific protocols (e.g., TCP):
`sniffer.py tcp`