Blog 2019/4/29
<- previous | index | next ->
Like ping, but for TCP ports.
$ sudo hping3 -S -V -p 80 github.com
using en1, addr: 192.168.2.5, MTU: 1500
HPING github.com (en1 192.30.253.112): S set, 40 headers + 0 data bytes
len=44 ip=192.30.253.112 ttl=47 DF id=0 tos=0 iplen=44
sport=80 flags=SA seq=0 win=28720 rtt=64.6 ms
seq=2893730458 ack=809625076 sum=c00a urp=0
len=44 ip=192.30.253.112 ttl=48 DF id=0 tos=0 iplen=44
sport=80 flags=SA seq=1 win=28720 rtt=60.5 ms
seq=2898820301 ack=1401346771 sum=1a48 urp=0
len=44 ip=192.30.253.112 ttl=48 DF id=0 tos=0 iplen=44
sport=80 flags=SA seq=2 win=28720 rtt=57.0 ms
seq=2021630632 ack=1401918392 sum=999d urp=0
On Debian:
apt-get install hping3
On Mac OS:
brew install hping3
You'll need to ensure /usr/local/sbin
in your $PATH
.
os: Macos monterey
use brew
Error:hping has been disabled because it is not maintained upstream!