CentOS 7安装 hping教程

hping是一个面向命令行的TCP/IP数据包汇编器/分析器。它的界面灵感来源于ping(8)unix命令,但hping并不是只能发送ICMP呼应请求。它支持TCP、UDP、ICMP和RAW-IP协议,具有traceroute模式,能够在一个覆盖的通道之间发送文件,以及其他许多功能。

CentOS 7安装 hping教程CentOS 7安装 hping教程

创建本地安装目录

mkdir -p /usr/local/hping && cd /usr/local/hping

下载并解压

wget https://github.com/antirez/hping/archive/master.zip && unzip master.zip && cd hping-master

安装依赖包

yum install -y libpcap-devel
yum install -y gcc gcc-c++
yum install -y tcl tcl-devel

设置软连接

ln -sf /usr/include/pcap-bpf.h /usr/include/net/bpf.h

进行安装

./configure && make strip && make install

测试查询版本

hping3 -v

其它参考

hping -ltn 列出所有TCP端口 hping -p 发起TCP探测 -S设置SYN包  -a 伪造IP模拟DDOS

本文地址:https://www.linuxprobe.com/linux-hping.html

猜你喜欢

转载自blog.csdn.net/u014389734/article/details/107604955
今日推荐