1
0
mirror of https://github.com/captn3m0/Scripts.git synced 2024-09-21 00:57:51 +00:00
scripts/port_block_check.sh
2012-01-28 12:44:33 +05:30

10 lines
151 B
Bash
Executable File

#!/bin/bash
for i in {1..65535}
do
nc -w 2 open.zorinaq.com $i
rc=$?
if [[ $rc == 0 ]] ; then
echo "Port $i unblocked"
fi
done