Home > System Tutorial > LINUX > Test network security and performance: Learn about the Linux hping command line tool

Test network security and performance: Learn about the Linux hping command line tool

PHPz
Release: 2024-02-10 12:39:12
forward
1307 people have browsed it

Have you ever wondered how to test your network security? Or have you ever wondered how to take network measurements? If so, then you definitely need to know about a tool called hping, which is a powerful Linux command line tool that can help you with network probing, measurement, and attack testing.

hping is a command line oriented TCP/IP packet assembler/analyzer. Its interface is inspired by the ping(8) unix command, but hping does not only send ICMP echo requests. It supports TCP, UDP, ICMP and RAW-IP protocols, has a traceroute mode, the ability to send files between an overlay channel, and many other features.

测试网络安全性和性能:了解Linux hping命令行工具

Create local installation directory

mkdir -p /usr/local/hping && cd /usr/local/hping
Copy after login

Download and unzip

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

Install dependency packages

yum install -y libpcap-devel
yum install -y gcc gcc-c++
yum install -y tcl tcl-devel
Copy after login

Set soft connection

ln -sf /usr/include/pcap-bpf.h /usr/include/net/bpf.h
Copy after login

Install

./configure && make strip && make install
Copy after login

Test query version

hping3 -v
Copy after login

Other references

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

The above is the detailed content of Test network security and performance: Learn about the Linux hping command line tool. For more information, please follow other related articles on the PHP Chinese website!

source:lxlinux.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template