Skip to content

Instantly share code, notes, and snippets.

@kacinskas
Created October 5, 2017 13:03
Show Gist options
  • Save kacinskas/8f954c3e75fea9d4b4aa9da1295a8b66 to your computer and use it in GitHub Desktop.
Save kacinskas/8f954c3e75fea9d4b4aa9da1295a8b66 to your computer and use it in GitHub Desktop.
# net
tcpdump -nnn -s 0 -i eth0 -A '(tcp[((tcp[12:1] & 0xf0) >> 2):4] = 0x504f5354)'
# sql
tcpdump port 3306 -s 65535 -x -n -q -tttt > /root/tcpdump.out
pt-query-digest --type=tcpdump /root/tcpdump.out | less
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment