Feb
19
19
TcpDump - Output to file AND console
Posted by jbjorkman on February 19, 2010 underDeprecated: preg_replace() [function.preg-replace]: The /e modifier is deprecated, use preg_replace_callback instead in /var/www/myfoto.se/jbits.se/blog/wp-includes/formatting.php on line 82
Linux, Network
tcpdump -s 0 -i eth0 -c 10 -w - -U | tee capture.pcap | tcpdump -n -r -
Full packets are written to capture.pcap, at the same time tcpdump -r decodes the stream to console.
-s 0 (Whole packets)
-w - (Write output to console)
-U (Do not buffer output)
Add A Comment
You must be logged in to post a comment.