hping3

Custom TCP/IP packet crafter & scanner.

KaliParrotLinuxmedium

pkg: hping3

hping3 builds arbitrary packets for firewall testing, port scanning, traceroute and DoS research.

Syntax

hping3 [flags] {host}

Example

hping3 -S -p 80 -c 3 example.com

Sends 3 TCP SYN packets to port 80 to test reachability/filtering.

Options & flags

What each switch does. Toggle them in the builder below to assemble a command.

-SSet the SYN flag.
-ASet the ACK flag.
-FSet the FIN flag.
-p <80>Destination port.
-c <3>Number of packets to send.
-1ICMP mode.
--floodSend as fast as possible (DoS testing — careful).
-a <1.2.3.4>Spoof the source IP address.

Command builder

Tick options (and fill any values) to build a ready-to-copy command.

hping3 HOST

Usage examples

hping3 -S -p 80 -c 3 target.tld

Send 3 SYN packets to port 80.

hping3 -1 target.tld

ICMP ping with full control.

Advantages
  • Total packet control
  • Firewall/IDS testing
Disadvantages
  • Low-level expertise needed
  • Can be abused for DoS
Tags
#packet-crafting#firewall

Official docs: hping3

Related commands

Frequently asked questions

What is hping3 used for?
hping3 builds arbitrary packets for firewall testing, port scanning, traceroute and DoS research.
What is an example hping3 command?
A common example is: hping3 -S -p 80 -c 3 example.com — Sends 3 TCP SYN packets to port 80 to test reachability/filtering.
Is hping3 part of Kali Linux?
Yes. hping3 ships with Kali Linux (and Parrot OS). If missing, install it with: sudo apt install hping3.
What category of security tool is hping3?
hping3 is a Information Gathering tool with a medium-risk profile when run against a live target.

Try recon tools live

Run real scans against a domain you control, stage by stage.

Open the lab →