Skip to content

Instantly share code, notes, and snippets.

@manuelmorales
Last active December 18, 2018 15:54
Show Gist options
  • Save manuelmorales/3182228 to your computer and use it in GitHub Desktop.
Save manuelmorales/3182228 to your computer and use it in GitHub Desktop.
How to capture HTTP traffic with the command line using tshark, wireshark, socat and tcpdump
sudo emerge wireshark
sudo tshark tcp dst port 80
sudo tshark 'tcp dst port 80' -R'http.request.method == "GET"'
sudo tcpdump -i lo -s 1024 -l -A port 82
socat -vs UNIX-LISTEN:/tmp/a.sock,reuseaddr UNIX-CONNECT:/var/run/engineyard/unicorn_cirrus.sock
tcpdump -s0 dst host api.mixpanel.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment