portdetect
简介
提供端口检测 在一定的情况下, 我们需要确定目标端口是否可以连接, 通过这个可以确定. 目前只支持检测 tcp 端口
组件接口
portdetect.gs
函数原型 | 函数作用 |
---|---|
bool detect_tcp(int port, string host = "127.0.0.1", int maxtime = -1) | 检测目标主机是否监听指定端口 |
提供端口检测 在一定的情况下, 我们需要确定目标端口是否可以连接, 通过这个可以确定. 目前只支持检测 tcp 端口
函数原型 | 函数作用 |
---|---|
bool detect_tcp(int port, string host = "127.0.0.1", int maxtime = -1) | 检测目标主机是否监听指定端口 |