hping Installation on Mac

HPING

Command-line oriented TCP/IP packet assembler/analyzer! It is inspired by linux ping but its not only able to send ICMP echo requests but also support TCP, UDP and RAW-IP protocols. It has traceroute mode and ability to send files between covered channel. 

You can use hping for firewall testing, advance port scanning, remote uptime guessing, manual path MTU discovery, TCP/IP stacks auditing, remote OS fingerprinting, network testing using different protocols and many more.

More Information: http://www.hping.org/
Steps:

  1. Launch Terminal by pressing command+space, type terminal and hit Enter key.
  2. Run
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
  3. Install
    brew install hping

Done!