Skip to content

Instantly share code, notes, and snippets.

@ober
Created July 6, 2011 22:51
Show Gist options
  • Save ober/1068532 to your computer and use it in GitHub Desktop.
Save ober/1068532 to your computer and use it in GitHub Desktop.
tshark -G|grep -i mysql|tr "\t" "\n"|grep "^mysql"|sort -u|awk 'BEGIN{ ORS=" "; print "tshark -tad -Nn port 3306"} {print "-z \"proto,colinfo,"$1","$1"\"" } END{ print "|sed -e \"s# == #:#g\" -e \"s#mysql.##g\"" }' > readmysql
chmod a+rx readmysql
./readmysql
# View all the good stuff about each packet.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment