Skip to content

Instantly share code, notes, and snippets.

@captn3m0
Last active December 16, 2015 14:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save captn3m0/5450528 to your computer and use it in GitHub Desktop.
Save captn3m0/5450528 to your computer and use it in GitHub Desktop.
List of outgoing ports opened in the IIT-R campus
21
22
53
80
81
110
161
162
210
443
465
554
587
993
995
1720
1935
1985
2000
2020
2082
2083
2095
2096
2401
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3386
4764
4765
8008
8080
8081
8085
8400
8443
9091
10098
10099
12359
15003
18000
20001
27001
47372
47373
52709
52710

Our institute, IIT-Roorkee, blocks a lot of ports, for no reason. This was a test run to determine which outgoing ports are open in the institute. We are working on a proposal to open more ports in the campus. If this sounds interesting, get in touch with me at nemo@sdslabs.co.in.

#!/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment