用于检测服务器上某个ip地址开放的端口,查漏洞等。
#!/bin/bash
# port range to check
for i in {20..25}
do
echo now is $i
#check open port and save to file
wget 192.168.1.1:$i --timeout=2 --tries=1 && echo $i >> testok.txt
done
用于检测服务器上某个ip地址开放的端口,查漏洞等。
#!/bin/bash
# port range to check
for i in {20..25}
do
echo now is $i
#check open port and save to file
wget 192.168.1.1:$i --timeout=2 --tries=1 && echo $i >> testok.txt
done