在Windows上由psping可以用,Mac上可以用hping,但不知怎么现在Mac上的hping不能用了,错误Sorry, this hping binary was compiled without TCL scripting support。
Sorry, this hping binary was compiled without TCL scripting support
找替代,看了nmap,似乎没有。mtr以为只有icmp包,后来看到Linode上的这篇mtr高级,果然可以tcp
1
sudo mtr --tcp --port 22 hostname