1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/sunos/snoop.md
Emily Grace Seville dcb6919bbf
Make placeholders more compatible with CLIP: (#9870)
- use placeholders for numbers
- use "path/to" and "file"
- simplify ip placeholders
2023-02-20 15:16:13 +08:00

25 lines
645 B
Markdown

# snoop
> Network packet sniffer.
> SunOS equivalent of tcpdump.
> More information: <https://www.unix.com/man-page/sunos/1m/snoop>.
- Capture packets on a specific network interface:
`snoop -d {{e1000g0}}`
- Save captured packets in a file instead of displaying them:
`snoop -o {{path/to/file}}`
- Display verbose protocol layer summary of packets from a file:
`snoop -V -i {{path/to/file}}`
- Capture network packets that come from a hostname and go to a given port:
`snoop to port {{port}} from host {{hostname}}`
- Capture and show a hex-dump of network packets exchanged between two IP addresses:
`snoop -x0 -p4 {{ip1}} {{ip2}}`