Difference between revisions of "TcpDump"

From Vague Hope Wiki
Jump to: navigation, search
(Created page with " tcpdump -i eth0 tcp port 80 -w foo.$(date +%s).pcap tcpdump -i eth0 "(host 10.0.1.1 or 10.0.1.2) and tcp port 8000" -w foo.$(date +%s).pcap")
 
Line 1: Line 1:
  tcpdump -i eth0 tcp port 80 -w foo.$(date +%s).pcap
+
  tcpdump -i eth0 tcp port 80 -w foo.$(date +'%Y%m%d-%H%M%S').pcap
  tcpdump -i eth0 "(host 10.0.1.1 or 10.0.1.2) and tcp port 8000" -w foo.$(date +%s).pcap
+
  tcpdump -i eth0 "(host 10.0.1.1 or 10.0.1.2) and tcp port 8000" -w foo.$(date +'%Y%m%d-%H%M%S').pcap

Revision as of 09:04, 15 February 2016

tcpdump -i eth0 tcp port 80 -w foo.$(date +'%Y%m%d-%H%M%S').pcap
tcpdump -i eth0 "(host 10.0.1.1 or 10.0.1.2) and tcp port 8000" -w foo.$(date +'%Y%m%d-%H%M%S').pcap