Tcpdump Examples
hackertarget.com
Tcpdump Examples
1–10 of 41 posts
Re: Tcpdump Examples
#2Also sometimes I reach for ngrep if it is installed:
Re: Tcpdump Examples
#3Re: Tcpdump Examples
#4Re: Tcpdump Examples
#5I think a similar post on leveraging Wireshark would be neat. The deepest I tend to need to go is searching packets for a known substring and then following the TCP stream to see where something unexpected happened. Add to this the analyzing of the frames on this stream and you can diagnose tricky timeout issues, bad protocol usage, and much more.
Re: Tcpdump Examples
#6Re: Tcpdump Examples
#7There is a whole industry for distilling manpages down to stupid chunks and making blog posts it seems.
Re: Tcpdump Examples
#8Re: Tcpdump Examples
#9There is a whole industry for distilling manpages down to stupid chunks and making blog posts it seems.
Reading through a long man page in terminal to get to el' result and then find and use cmd extensions. vs 2s google "how to inurl: tcpdump http packet"
Re: Tcpdump Examples
#10Good stuff, thanks for sharing. I always forget you can do indexing into the packet itself as in tcp[((tcp[12:1] & 0xf0) >> 2):4]. Also sometimes I reach for ngrep if it is installed: https://github.com/jpr5/ngrep/blob/master/EXAMPLES.md
sudo stdbuf -oL -eL /usr/sbin/tcpdump -A -s 10240 \
"tcp port 4080 and (((ip[2:2] - ((ip[0]&0xf)>2)) != 0)" | \
grep -a --line-buffered ".+(GET |HTTP\/|POST )|^[A-Za-z0-9-]+: " | \
perl -nle 'BEGIN{$|=1} { s/.*?(GET |HTTP\/[0-9.]* |POST )/\n$1/g; print }'