commands.sh

hping3

all

Advanced ping utility which supports protocols such TCP, UDP, and raw IP. Best run with elevated privileges. See also: `masscan`, `naabu`, `nmap`, `rustscan`, `zmap`.

More info →

Options (10)

-1, --icmpboolean

Ping a destination with 4 ICMP ping requests

Example: hping3 {{[-1|--icmp]}} {{[-c|--count]}} 4 {{ip_or_hostname}}
-c, --countboolean

Ping a destination with 4 ICMP ping requests

Example: hping3 {{[-1|--icmp]}} {{[-c|--count]}} 4 {{ip_or_hostname}}
-2, --udpboolean

Ping an IP address over UDP on port 80

Example: hping3 {{[-2|--udp]}} {{[-p|--destport]}} 80 {{[-S|--syn]}} {{ip_or_hostname}}
-p, --destportboolean

Ping an IP address over UDP on port 80

Example: hping3 {{[-2|--udp]}} {{[-p|--destport]}} 80 {{[-S|--syn]}} {{ip_or_hostname}}
-S, --synboolean

Ping an IP address over UDP on port 80

Example: hping3 {{[-2|--udp]}} {{[-p|--destport]}} 80 {{[-S|--syn]}} {{ip_or_hostname}}
-V, --verboseboolean

Scan TCP port 80, scanning from the specific local source port 5090

Example: hping3 {{[-V|--verbose]}} {{[-S|--syn]}} {{[-p|--destport]}} 80 {{[-s|--baseport]}} 5090 {{ip_or_hostname}}
-s, --baseportboolean

Scan TCP port 80, scanning from the specific local source port 5090

Example: hping3 {{[-V|--verbose]}} {{[-S|--syn]}} {{[-p|--destport]}} 80 {{[-s|--baseport]}} 5090 {{ip_or_hostname}}
-T, --tracerouteboolean

Traceroute using a TCP scan to a specific destination port

Example: hping3 {{[-T|--traceroute]}} {{[-V|--verbose]}} {{[-S|--syn]}} {{[-p|--destport]}} {{80}} {{ip_or_hostname}}
-8, --scanboolean

Scan a set of TCP ports on a specific IP address

Example: hping3 {{[-8|--scan]}} {{80,3000,9000}} {{[-S|--syn]}} {{ip_or_hostname}}
-A, --ackboolean

Perform a TCP ACK scan to check if a given host is alive

Example: hping3 {{[-c|--count]}} {{2}} {{[-V|--verbose]}} {{[-p|--destport]}} {{80}} {{[-A|--ack]}} {{ip_or_hostname}}

Examples (7)

Ping a destination with 4 ICMP ping requests

hping3 [-1|--icmp] [-c|--count] 4 ip_or_hostname

Ping an IP address over UDP on port 80

hping3 [-2|--udp] [-p|--destport] 80 [-S|--syn] ip_or_hostname

Scan TCP port 80, scanning from the specific local source port 5090

hping3 [-V|--verbose] [-S|--syn] [-p|--destport] 80 [-s|--baseport] 5090 ip_or_hostname

Traceroute using a TCP scan to a specific destination port

hping3 [-T|--traceroute] [-V|--verbose] [-S|--syn] [-p|--destport] 80 ip_or_hostname

Scan a set of TCP ports on a specific IP address

hping3 [-8|--scan] 80,3000,9000 [-S|--syn] ip_or_hostname

Perform a TCP ACK scan to check if a given host is alive

hping3 [-c|--count] 2 [-V|--verbose] [-p|--destport] 80 [-A|--ack] ip_or_hostname

Perform a charge test on port 80

hping3 --flood [-p|--destport] 80 [-S|--syn] ip_or_hostname
made by @shridhargupta | data from tldr-pages