Linux网络socket网络抓包工具

Linux网络socket网络抓包工具

  • Linux网络socket网络抓包工具
    • tcpdump网络抓包
    • ngrep网络抓包

Linux网络socket网络抓包工具

tcpdump网络抓包

wget http://archive.ubuntu.com/ubuntu/pool/main/libp/libpcap/libpcap0.8_1.8.1-6ubuntu1_amd64.deb \
&& dpkg -i libpcap0.8_1.8.1-6ubuntu1_amd64.deb \
&& wget http://archive.ubuntu.com/ubuntu/pool/main/t/tcpdump/tcpdump_4.9.3-0ubuntu0.18.04.2_amd64.deb \
&& dpkg -i tcpdump_4.9.3-0ubuntu0.18.04.2_amd64.deb
#http抓包
tcpdump tcp port 12002 -n -X -s 0

ngrep网络抓包

wget http://archive.ubuntu.com/ubuntu/pool/main/libn/libnet/libnet1_1.1.6+dfsg-3.1_amd64.deb \
&& wget http://archive.ubuntu.com/ubuntu/pool/main/libp/libpcap/libpcap0.8_1.8.1-6ubuntu1_amd64.deb \
&& wget http://archive.ubuntu.com/ubuntu/pool/universe/n/ngrep/ngrep_1.47+ds1-1_amd64.deb \
&& dpkg -i libpcap0.8_1.8.1-6ubuntu1_amd64.deb \
&& dpkg -i libnet1_1.1.6+dfsg-3.1_amd64.deb \
&& dpkg -i ngrep_1.47+ds1-1_amd64.deb
 
 
 
#抓包
ngrep -W byline -d eth0 port 9021

你可能感兴趣的:(开发测试,unix&linux,ubuntu,linux,运维)