端口扫描
接口说明
域名/IP端口开放检测
请求示例
请求地址
https://api.tangdouz.com/a/portscan.php?host=tangdouz.com
请求地址
https://api.tangdouz.com/a/portscan.php?host=8.8.8.8&ports=80,443,3306
请求地址
https://api.tangdouz.com/a/portscan.php?host=github.com
请求地址
https://api.tangdouz.com/a/portscan.php?host=baidu.com&ports=80,443,8080
请求参数说明
| 参数名 | 说明 | 是否必填 |
|---|---|---|
host |
tangdouz.com | 是 |
ports |
80,443,3306 | 是 |
返回参数说明
| 参数名 | 说明 |
|---|---|
input |
输入内容 |
host |
主机 |
ip |
解析到的IP |
is_ip |
是否为IP |
open_count |
开放端口数量 |
total |
扫描的端口总数 |
open |
开放端口列表(port/status/time) |
closed |
关闭/过滤端口列表 |
scanned_ports |
扫描端口清单 |
JSON返回示例
JSON格式
{
"code": 200,
"msg": "ok",
"data": {
"input": "github.com",
"host": "github.com",
"ip": "20.205.243.166",
"is_ip": false,
"open_count": 2,
"total": 16,
"open": [
{
"port": 22,
"status": "open",
"time": "112ms"
},
{
"port": 80,
"status": "open",
"time": "95ms"
}
],
"closed": [
{
"port": 21,
"status": "filtered(timeout)",
"time": "1002ms"
}
],
"scanned_ports": [
{
"port": 21
},
{
"port": 22
},
{
"port": 25
}
]
}
}