Last active
December 18, 2018 15:54
-
-
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
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
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