CentOS 7.6.1810 安裝hping 3.0
1、創建本地安裝目錄
mkdir -p /usr/local/hping && cd /usr/local/hping
2、下載並解壓
wget https://github.com/antirez/hping/archive/master.zip && unzip master.zip && cd hping-master
3、安裝依賴包
yum install -y libpcap-devel yum install -y gcc gcc-c++ yum install -y tcl tcl-devel
4、設置軟連接
ln -sf /usr/include/pcap-bpf.h /usr/include/net/bpf.h
5、進行安裝
./configure && make strip && make install
6、測試查詢版本
hping3 -v
其它參考
hping -ltn 列出所有TCP端口 hping -p 發起TCP探測 -S設置SYN包 -a 偽造IP模擬DDOS