2025-03-14 21:59:59 -06:00
|
|
|
# hping3
|
|
|
|
|
|
|
|
|
|
> Advanced ping utility which supports protocols such TCP, UDP, and raw IP.
|
|
|
|
|
> Best run with elevated privileges.
|
2026-02-18 06:55:01 -07:00
|
|
|
> See also: `masscan`, `naabu`, `nmap`, `rustscan`, `zmap`.
|
|
|
|
|
> More information: <https://manned.org/hping3>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Ping a destination with 4 ICMP ping requests:
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
`hping3 {{[-1|--icmp]}} {{[-c|--count]}} 4 {{ip_or_hostname}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Ping an IP address over UDP on port 80:
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
`hping3 {{[-2|--udp]}} {{[-p|--destport]}} 80 {{[-S|--syn]}} {{ip_or_hostname}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Scan TCP port 80, scanning from the specific local source port 5090:
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
`hping3 {{[-V|--verbose]}} {{[-S|--syn]}} {{[-p|--destport]}} 80 {{[-s|--baseport]}} 5090 {{ip_or_hostname}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Traceroute using a TCP scan to a specific destination port:
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
`hping3 {{[-T|--traceroute]}} {{[-V|--verbose]}} {{[-S|--syn]}} {{[-p|--destport]}} {{80}} {{ip_or_hostname}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Scan a set of TCP ports on a specific IP address:
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
`hping3 {{[-8|--scan]}} {{80,3000,9000}} {{[-S|--syn]}} {{ip_or_hostname}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Perform a TCP ACK scan to check if a given host is alive:
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
`hping3 {{[-c|--count]}} {{2}} {{[-V|--verbose]}} {{[-p|--destport]}} {{80}} {{[-A|--ack]}} {{ip_or_hostname}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Perform a charge test on port 80:
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
`hping3 --flood {{[-p|--destport]}} 80 {{[-S|--syn]}} {{ip_or_hostname}}`
|