Skip to content

Instantly share code, notes, and snippets.

@michenriksen
Last active December 25, 2015 12:09
Show Gist options
  • Save michenriksen/6974484 to your computer and use it in GitHub Desktop.
Save michenriksen/6974484 to your computer and use it in GitHub Desktop.
The Freenode IRC network supports connections via Tor hidden service URL's which provides solid anonymity and security, but unfortunately the hosts are a little flaky and you will have to regularly switch out the host. This simple shell script makes it easy to figure out which ones are alive. Note: The scripts assumes that Torsocks (https://code…
hosts=( p4fsi4ockecnea7l.onion lgttsalmpw3qo4no.onion 5jebommkgbfl6agc.onion lbkwyb2csfcgoxwa.onion )
for i in "${hosts[@]}"
do
torsocks 2>&1 > /dev/null nc -w5 $i 6667 2>&1 > /dev/null && echo " ✔ $i is alive!" || echo " ✖ $i seems dead."
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment