Maison  >  Article  >  Tutoriel système  >  Testez la sécurité et les performances du réseau : découvrez l'outil de ligne de commande Linux hping

Testez la sécurité et les performances du réseau : découvrez l'outil de ligne de commande Linux hping

PHPz
PHPzavant
2024-02-10 12:39:121238parcourir

你是否曾经想过如何测试你的网络安全性?或者你是否曾经想过如何进行网络测量?如果是这样,那么你一定需要了解一个名为hping的工具,这是一个强大的Linux命令行工具,可以帮助你进行网络探测、测量和攻击测试。

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

测试网络安全性和性能:了解Linux 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

Ce qui précède est le contenu détaillé de. pour plus d'informations, suivez d'autres articles connexes sur le site Web de PHP en chinois!

Déclaration:
Cet article est reproduit dans:. en cas de violation, veuillez contacter admin@php.cn Supprimer