Skip to content

Instantly share code, notes, and snippets.

View Atomis70's full-sized avatar

Atomis Atomis70

  • Montréal, Québec, Canada
View GitHub Profile
@enginefeeder101
enginefeeder101 / testports.sh
Created November 17, 2015 21:20
Test outgoing open ports
#!/bin/bash
task(){
LC_ALL=C nc -vzw5 portquiz.net $1 2>&1 | grep -v 'Connection timed out'
}
N=50 # Specify number of ports to check at once
(
for port in {1..65535}; do # Specify port range to check here
((i=i%N)); ((i++==0)) && wait