Linux command
hping3 命令
安全
权限或系统影响较大,执行前请核对目标。
常用示例
TCP SYN ping
sudo hping3 -S -p [80] [target]
ICMP ping
sudo hping3 -1 [target]
UDP ping
sudo hping3 -2 -p [53] [target]
Traceroute mode
sudo hping3 --traceroute -p [80] -S [target]
Flood mode
sudo hping3 --flood -S -p [80] [target]
Set source port
sudo hping3 -S -p [80] -s [12345] [target]
说明
hping3 is a network tool for crafting TCP/IP packets. It's used for firewall testing, port scanning, network testing, and security auditing. It provides more control than ping or traceroute. hping3 can send custom packets with specified flags, options, and payloads, making it valuable for penetration testing and troubleshooting.
参数
- -S, --syn
- Set SYN flag.
- -A, --ack
- Set ACK flag.
- -F, --fin
- Set FIN flag.
- -p _port_
- Destination port.
- -s _port_
- Source port.
- -1, --icmp
- ICMP mode.
- -2, --udp
- UDP mode.
- --flood
- Flood mode (fast as possible).
- --traceroute
- Traceroute mode.
- -i _interval_
- Interval between packets.
- -c _count_
- Packet count.
- -a _address_
- Spoof source address.
- --data _size_
- Data size.
FAQ
What is the hping3 command used for?
hping3 is a network tool for crafting TCP/IP packets. It's used for firewall testing, port scanning, network testing, and security auditing. It provides more control than ping or traceroute. hping3 can send custom packets with specified flags, options, and payloads, making it valuable for penetration testing and troubleshooting.
How do I run a basic hping3 example?
Run `sudo hping3 -S -p [80] [target]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -S, --syn do in hping3?
Set SYN flag.