Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- red='\033[0;31m'
- green='\033[0;32m'
- nc='\033[0m'
- hostlist=(zachkline.us dolphin)
- for ip in ${hostlist[@]}; do
- if [[ ${ip} != "dolphin" ]]; then
- if ping -c 2 -w 2 ${ip} &>/dev/null; then
- status=${green}online${nc}
- else
- status=${red}offline${nc}
- fi
- fi
- if [[ ${ip} == "zachkline.us" ]]; then
- host="Network"
- printf "${host}:\t\t\t${status}"
- if nc -w 2 -z ${ip} 8443 &>/dev/null; then
- printf "\n\tdfSense\t\t\t${green}online${nc}"
- else
- printf "\n\tdfSense\t\t\t${red}offline${nc}"
- fi
- if nc -w 2 -z ${ip} 8006 && nc -w 2 -z ${ip} 1337 &>/dev/null; then
- printf "\n\tPVE-squishy\t\t${green}online${nc}"
- else
- printf "\n\tPVE-squishy\t\t${red}offline${nc}"
- fi
- if nc -w 2 -z ${ip} 8444 &>/dev/null; then
- printf "\n\t100-vfSense\t\t${green}online${nc}"
- else
- printf "\n\t100-vfSense\t\t${red}offline${nc}"
- fi
- if nc -w 2 -z ${ip} 101 &>/dev/null; then
- printf "\n\t101-AptCacher\t\t${green}online${nc}"
- else
- printf "\n\t101-AptCacher\t\t${red}offline${nc}"
- fi
- if nc -w 2 -z ${ip} 102 &>/dev/null; then
- printf "\n\t102-Access\t\t${green}online${nc}"
- else
- printf "\n\t102-Access\t\t${red}offline${nc}"
- fi
- if nc -w 2 -z ${ip} 80 && nc -w 2 -z ${ip} 443 && nc -w 2 -z ${ip} 1000 &>/dev/null; then
- printf "\n\t1000-Epsilon\t\t${green}online${nc}"
- else
- printf "\n\t1000-Epsilon\t\t${red}offline${nc}"
- fi
- if nc -w 2 -z ${ip} 1001 &>/dev/null; then
- printf "\n\t1001-Omega\t\t${green}online${nc}"
- else
- printf "\n\t1001-Omega\t\t${red}offline${nc}"
- fi
- if nc -w 2 -z ${ip} 1002 &>/dev/null; then
- printf "\n\t1002-Battleship\t\t${green}online${nc}"
- else
- printf "\n\t1002-Battleship\t\t${red}offline${nc}"
- fi
- if nc -w 2 -z ${ip} 2000 && nc -w 2 -z ${ip} 25565 &>/dev/null; then
- printf "\n\t2000-LLC\t\t${green}online${nc}"
- else
- printf "\n\t2000-LLC\t\t${red}offline${nc}"
- fi
- if nc -w 2 -z ${ip} 2001 &>/dev/null; then
- printf "\n\t2001-Dolphin\t\t${green}online${nc}"
- else
- printf "\n\t2001-Dolphin\t\t${red}offline${nc}"
- fi
- if nc -w 2 -z ${ip} 2002 &>/dev/null; then
- printf "\n\t2002-Battleship\t\t${green}online${nc}"
- else
- printf "\n\t2002-Battleship\t\t${red}offline${nc}"
- fi
- printf "\n\n"
- fi
- if [[ ${ip} == "dolphin" ]]; then
- host="tor -> dolphin"
- if ncat -z --proxy 127.0.0.1:9050 --proxy-type socks5 dlphn4riaj7w53r4.onion 80 &>/dev/null; then
- printf "${host}\t\t\t${green}online${nc}"
- else
- printf "${host}\t\t\t${red}offline${nc}"
- fi
- printf "\n\n"
- fi
- done
Add Comment
Please, Sign In to add comment