Created
July 6, 2011 22:51
-
-
Save ober/1068532 to your computer and use it in GitHub Desktop.
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
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