当前位置: 首页 > 科技观察

Windows和Linux常用TCP端口检测工具汇总

时间:2023-03-15 01:38:46 科技观察

一、Windows常用TCP端口检测工具1.TCPinghttps://www.elifulkerson.com/projects/tcping.php可以下载64位TCPing和复制到C:\Windows\System32目录下;TCPing使用tcping$host$port例子tcping64www.qq.com443-t连续pinguntilCtr+C停止;2.PSpingPsPing实现Ping功能,TCPping,延迟和带宽测量。https://docs.microsoft.com/zh-cn/sysinternals/downloads/pspinghttps://download.sysinternals.com/files/PSTools.zip下载64位psping64.exe到C:\Windows\System32目录;psping64--help查看使用情况psping64www.baidu.com:443psping64-twww.baidu.com:4432.Linux下TCP端口检测1.nc命令yuminstallncnc-vz192.168.31.122nc-vz192.168.31.181222。nping工具需要安装nmap工具;yum提供的npingyuminstallnmap-y如果是开放端口,可以看到client和server已经正常完成握手;nping--tcp-connect-p8122192.168.31.1如果是非开放端口,会收到显示是这样的;nping--tcp-connect-p22192.168.31.1nping的具体用法可以参考这篇文章ttps://cloud.tencent.com/developer/article/1898453。tcpingyum在Linux下安装tcpingtcping192.168。31.184434.nmaptoolnmap-v-p8122192.168.31.1Nmap命令总结可参考以下链接:https://cloud.tencent.com/developer/article/1953641三、TCP端口检测方法总结Linux中常用的很多,比如最基本的telnet工具都可以用来检测,curl、wget、ssh等命令都可以用来检测,并不局限于上面介绍的这些工具和命令。