hping3

Advanced ping utility which supports protocols such TCP, UDP, and raw IP. Best run with elevated privileges. More information: <https://github.com/antirez/hping>.

Install

All systems
curl cmd.cat/hping3.sh
Debian Debian
apt-get install hping3
Ubuntu
apt-get install hping3
Arch Arch Linux
pacman -S hping3
image/svg+xml Kali Linux
apt-get install hping3
Fedora
dnf install hping3
Windows (WSL2)
sudo apt-get update sudo apt-get install hping3
Raspbian
apt-get install hping3

Advanced ping utility which supports protocols such TCP, UDP, and raw IP. Best run with elevated privileges. More information: <https://github.com/antirez/hping>.

  • Ping a destination with 4 ICMP ping requests:
    hping3 --icmp --count 4 ip_or_hostname
  • Ping an IP address over UDP on port 80:
    hping3 --udp --destport 80 --syn ip_or_hostname
  • Scan TCP port 80, scanning from the specific local source port 5090:
    hping3 --verbose --syn --destport 80 --baseport 5090 ip_or_hostname
  • Traceroute using a TCP scan to a specific destination port:
    hping3 --traceroute --verbose --syn --destport 80 ip_or_hostname
  • Scan a set of TCP ports on a specific IP address:
    hping3 --scan 80,3000,9000 --syn ip_or_hostname
  • Perform a TCP ACK scan to check if a given host is alive:
    hping3 --count 2 --verbose --destport 80 --ack ip_or_hostname
  • Perform a charge test on port 80:
    hping3 --flood --destport 80 --syn ip_or_hostname

© tl;dr; authors and contributors