From 4d6bafae9264fed2226fb32ac90e90aefa6ad9d8 Mon Sep 17 00:00:00 2001 From: Emanuell Faustino Date: Sat, 1 Mar 2014 01:25:34 -0300 Subject: [PATCH] Adding tcpdump page --- common/tcpdump.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 common/tcpdump.md diff --git a/common/tcpdump.md b/common/tcpdump.md new file mode 100644 index 000000000..f6eb21215 --- /dev/null +++ b/common/tcpdump.md @@ -0,0 +1,24 @@ +# tcpdump + +> Dump traffic on a network + +- capture the traffic of a specific interface + +`tcpdump -i {{eth0}}` + +- capture all TCP traffic showing contents (ASCII) in console + +`tcpdump -A tcp` + +- capture the traffic from or to a host + +`tcpdump host www.example.com` + +- capture the traffic from a specific interface, source, destination and port + +`tcpdump -i {{eth0}} src {{192.168.1.1}} dest {{192.168.1.2}} and port 80` + +- capture the traffic of a network + +`tcpdump net {{192.168.1.0/24}}` +