tshark or tcpdump get arp packets
4 月 06
tshark
"C:\Program Files\Wireshark\tshark.exe" -n -i 1 -f "arp" -l -t ad "C:\Program Files\Wireshark\tshark.exe" -n -i rpcap://ip:2002 -f "arp" -l -t ad
tcpdump (尚未找到支援 rpcap 的方法, 一般是 ssh 或 安裝 rpcapd)
tcpdump -n -e -i eth0 arp -U > arp_dump
————– updated ———————-
如何安裝tshark
https://www.question-defense.com/2010/03/07/install-tshark-on-centos-linux-using-the-yum-package-manager
————– updtaed ———————-
Linux 取得rpcap封包的方法, (windows 有內建, 所以不需要)
http://wsunccake.pixnet.net/blog/post/110857051
wireshark:
rhel:~ # wget –no-check-certificate https://1.as.dl.wireshark.org/src/wireshark-1.12.5.tar.bz2
rhel:~ # tar jxf wireshark-1.12.5.tar.bz2
rhel:~/wireshark-1.12.5 # cd wireshark-1.12.5/
rhel:~/wireshark-1.12.5 # ./configure –with-pcap –with-pcap-remote –enable-tshark
rhel:~/wireshark-1.12.5 # make
rhel:~/wireshark-1.12.5 # make install
rhel:~ # tshark -i rpcap://10.10.0.1:2002/eth0 # 使用 textmode wireshark