#!/bin/sh
for param in {110..254}
do
result=`ping -c 2 192.168.0.$param | grep ttl`
if [ "$result" ]
then
echo "192.168.0.$param"
fi
done
一个扫描ip的脚本
最新推荐文章于 2024-07-09 14:58:37 发布
#!/bin/sh
for param in {110..254}
do
result=`ping -c 2 192.168.0.$param | grep ttl`
if [ "$result" ]
then
echo "192.168.0.$param"
fi
done