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

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>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

hping3 --count {{2}} --verbose --destport {{80}} -A {{ip_or_hostname}}

click the source code to copy install hping3 on any operating system with command-not-found.com