Created
May 15, 2014 02:30
-
-
Save cutewalker/977ee003c035884159da to your computer and use it in GitHub Desktop.
tcpdump
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Adjust the number of pre/post lines (-B and -A args) as needed: | |
tcpdump -n -S -s 0 -A 'tcp dst port 80' | grep -B3 -A10 "GET /url" | |
This lets you get the HTTP requests you want, on the box, without generating a huge PCAP file that you have to offload somewhere else. | |
Keep in mind, that the BPF filter is never exact, if there are a large number of packets flowing through any box, BPF can and will drop packets. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment