Advertisement
metalx1000

Webpage Network Scanner

Oct 23rd, 2023
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #!/bin/bash
  2. #this scripts scans network work
  3. #for server with set page
  4.  
  5. ip="$(hostname -I | awk '{print $1}'|cut -d\. -f1,2,3)"
  6. port="80"
  7. page="home_page.html"
  8. for i in $ip.{20..200}
  9. do
  10. url="http://$i:$port/$page"
  11. wget --method=HEAD -q --max-redirect=0 -O /dev/null "$url" && echo "$url" &
  12. done
  13. wait
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement