赞
踩
#!/bin/bash
for i in cat ip.txt
do
#then
nc -v -n -z -w 1 $i 1-200 &>>hhh.txt
#echo $i : ok
done
#else
#echo $i : fail
grep ‘open’ hhh.txt >>open.txt
cat open.txt | cut -d ’ ’ -f2,3,4,5 >>nc.txt
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。