hping3 command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
hping3: command not found
or when using sudo you get the following error message
sudo: hping3: command not found
Solutions to hping3: command not found
How To Fix hping3: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu hping3 is provided by hping3 package.
hping3 is:
hping3 is a network tool able to send custom ICMP/UDP/TCP packets and to display target replies like ping does with ICMP replies. It handles fragmentation and arbitrary packet body and size, and can be used to transfer files under supported protocols. Using hping3, you can test firewall rules, perform (spoofed) port scanning, test network performance using different protocols, do path MTU discovery, perform traceroute-like actions under different protocols, fingerprint remote operating systems, audit TCP/IP stacks, etc. hping3 is scriptable using the Tcl language.
To fix this problem, we can install more using the command below.
sudo apt-get -y install hping3
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install hping3.
sudo apt -y install hping3
Or if you have aptitude installed you can use the following command.
sudo aptitude install hping3
Summary
In this tutorial we learn how to fix hping3 command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.