hping是用于生成和解析TCPIP协议数据包的开源工具。创作者是Salvatore Sanfilippo。目前最新版是hping3,支持使用tcl脚本自动化地调用其API。hping是安全审计、防火墙测试等工作的标配工具。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
以上就是良许教程网为各位朋友分享的Linu系统相关内容。想要了解更多Linux相关知识记得关注公众号“良许Linux”,或扫描下方二维码进行关注,更多干货等着你 !