Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement