服务器抓包

来源:互联网 发布:苹果怎么加密软件 编辑:程序博客网 时间:2024/05/16 12:20

#apt-cache search tshark

#apt-cache show tshark

#apt-get install tshark


a.tshark抓包

1.监控服务器上的mysql查询操作

#tshark -i eth0 -n -f 'tcp dst port 3306' -R 'mysql.query' -T fields -e mysql.query


#tshark -i eth0 -n -f 'tcp port 80' -l -R 'http.host and http.request.uri' -l




b.tcpdump抓吧

1.

#tcpdump -i eth0 -nnA 'port 80' -w abc

0 0