hping3 is a packet-crafting and network-testing tool. Use it only in environments you own or are authorized to test.
🚀 Basic Pattern
hping3 [options] target
Example with a SYN packet, destination port, and packet count:
hping3 -S -p 443 -c 3 target
🧰 Common Options
| Option | Description |
|---|---|
-S |
Set the TCP SYN flag |
-A |
Set the TCP ACK flag |
-F |
Set the TCP FIN flag |
-P |
Set the TCP PUSH flag |
-U |
Set the TCP URG flag |
-p <port> |
Set the destination port |
-c <count> |
Stop after sending the specified number of packets |
-8, --scan <ports> |
Enable scan mode for a port or range |
-V, --verbose |
Enable verbose output |
-1, --icmp |
Use ICMP mode |
-2, --udp |
Use UDP mode |
--rand-dest |
Randomize destination addresses |
-I <interface> |
Send through the specified interface |
Packet-crafting tools can trigger alerts, disrupt fragile services, or violate provider policies. Start with low counts and a clearly defined scope.