2019-12-09 18:33:38 +00:00
|
|
|
# snoop
|
|
|
|
|
|
|
|
> Network packet sniffer.
|
|
|
|
> SunOS equivalent of tcpdump.
|
2021-03-31 12:09:14 +01:00
|
|
|
> More information: <https://www.unix.com/man-page/sunos/1m/snoop>.
|
2019-12-09 18:33:38 +00:00
|
|
|
|
|
|
|
- Capture packets on a specific network interface:
|
|
|
|
|
|
|
|
`snoop -d {{e1000g0}}`
|
|
|
|
|
|
|
|
- Save captured packets in a file instead of displaying them:
|
|
|
|
|
2023-02-20 07:16:13 +00:00
|
|
|
`snoop -o {{path/to/file}}`
|
2019-12-09 18:33:38 +00:00
|
|
|
|
|
|
|
- Display verbose protocol layer summary of packets from a file:
|
|
|
|
|
2023-02-20 07:16:13 +00:00
|
|
|
`snoop -V -i {{path/to/file}}`
|
2019-12-09 18:33:38 +00:00
|
|
|
|
|
|
|
- Capture network packets that come from a hostname and go to a given port:
|
|
|
|
|
|
|
|
`snoop to port {{port}} from host {{hostname}}`
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Capture and show a hex-dump of network packets exchanged between two IP addresses:
|
2019-12-09 18:33:38 +00:00
|
|
|
|
2023-02-20 07:16:13 +00:00
|
|
|
`snoop -x0 -p4 {{ip1}} {{ip2}}`
|