#!/bin/sh # # MySQL ÆÐŶ »ìÆ캸±â # # by ÁÁÀºÁøÈ£(truefeel, http://coffeenix.net/ ) # 2008.11.24 INTERFACE="eth1" PORT="3306" if [ "$1" != "" ]; then arg=$1 fi tcpdump -p -i $INTERFACE -s 0 -l -w - dst port $PORT | strings -6 | ./query_view.pl $arg