CentOS 7安装 hping

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

 

posted @ 2019-08-29 17:18  让未来到来  阅读(3309)  评论(0编辑  收藏  举报