1
0
mirror of https://github.com/captn3m0/Scripts.git synced 2024-07-06 05:09:34 +00:00
scripts/port_block_check.sh

10 lines
151 B
Bash
Raw Normal View History

2012-01-28 07:14:33 +00:00
#!/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