From 06eac77614092127dd20d95d9835225115793919 Mon Sep 17 00:00:00 2001 From: Alan Landucci-Ruiz Date: Mon, 9 Dec 2019 11:33:38 -0700 Subject: [PATCH] snoop: add page (#3457) --- pages/sunos/snoop.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/sunos/snoop.md diff --git a/pages/sunos/snoop.md b/pages/sunos/snoop.md new file mode 100644 index 0000000000..96f4f24148 --- /dev/null +++ b/pages/sunos/snoop.md @@ -0,0 +1,24 @@ +# snoop + +> Network packet sniffer. +> SunOS equivalent of tcpdump. + +- Capture packets on a specific network interface: + +`snoop -d {{e1000g0}}` + +- Save captured packets in a file instead of displaying them: + +`snoop -o {{filename}}` + +- Display verbose protocol layer summary of packets from a file: + +`snoop -V -i {{filename}}` + +- Capture network packets that come from a hostname and go to a given port: + +`snoop to port {{port}} from host {{hostname}}` + +- Capture and show an hex-dump of network packets exchanged between two IP addresses: + +`snoop -x0 -p4 {{ip_address_1}} {{ip_address_2}}`