【介绍】
官网:http://www.hping.org/
源码:https://github.com/antirez/hping
安装:http://www.imooc.com/qadetail/90038
安装:https://github.com/antirez/hping/blob/master/INSTALL
安装:https://blog.csdn.net/u010039418/article/details/78380329
【安装】
先安装依赖:
yum install -y libpcap-devel yum install -y tcl tcl-devel
安装hping3:
wget https://github.com/antirez/hping/archive/master.zip && unzip master.zip && cd hping-master ./configure && make && make strip && make install
【使用】
参考:https://www.cnblogs.com/kai-joy/p/4846865.html
参考:https://blog.51cto.com/wuhaoshu/429010
参考:https://www.cnblogs.com/ye1031/p/4509581.html
sudo hping2 -c 4 -n -i 2 target.host
【排错】
报错:pcap.h: No such file or directory
安装 libpcap:
yum install -y libpcap-devel
报错:libpcap_stuff.c:19:21: fatal error: net/bpf.h: No such file or directory
cp /root/libpcap-1.10.0/pcap/bpf.h /usr/include/net/bpf.h
报错:/usr/bin/ld: cannot find -ltcl
参考:https://blog.csdn.net/xiajian2010/article/details/11619189
yum install -y tcl tcl-devel