#!/bin/bash
#this scripts scans network work
#for server with set page

ip="$(hostname -I | awk '{print $1}'|cut -d\. -f1,2,3)"
port="80"
page="home_page.html"
for i in $ip.{20..200}
do
  url="http://$i:$port/$page"
  wget --method=HEAD -q --max-redirect=0 -O /dev/null "$url" && echo "$url" & 
done
wait
