#!/bin/bash
i=1
while (( i <= 200 ))
do
nc -w 1 -z www.baidu.com 443
if [ $? -ne 0 ]
then
echo timeout
fi
let i++
done >> 1.txt
使用telnet 批量请求域名及端口,检查服务可用性
最新推荐文章于 2025-04-22 13:09:04 发布
#!/bin/bash
i=1
while (( i <= 200 ))
do
nc -w 1 -z www.baidu.com 443
if [ $? -ne 0 ]
then
echo timeout
fi
let i++
done >> 1.txt