wireshark + rpcapd实现在Linux抓包

## 构建
在buntu Linux下构建:


    sudo apt-get build-dep libpcap
    cd rpcapd/libpcap
    ./configure && make
    cd ../
    make

在 Centos/Fedora/Redhat Linux下构建:


libcrypt.a in glibc-static is broken in ,remove `-static` in Makefile


     yum install -y byacc glibc-static libgcrypt-devel
     cd rpcapd/libpcap
     ./configure && make
     cd ../
     make




## 使用
在Linux端:
    
sudo ./rpcapd -4 -n -p <端口>
可以指定一个或使用默认的随机数据传输端口:

    
sudo ./rpcapd -4 -n -t <data_transfer_port> -p <chosen_port>

在Windows端:

捕捉->选项





猜你喜欢

转载自blog.csdn.net/idwtwt/article/details/79263476