diff options
author | Roger Dingledine <arma@torproject.org> | 2019-02-20 10:36:54 -0500 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2019-02-20 10:36:54 -0500 |
commit | 4d4eda89a1d0f3b19b408349d602bf7ba47e1cdb (patch) | |
tree | f8603e1135590293e152f112f43b2cfec0f2ff96 /contrib | |
parent | 6927e9a60ca12fa67d6a33044c2903ce95ca1605 (diff) | |
parent | ccab4347e592116fcbc0faa42dcfaf7eaa6fe715 (diff) | |
download | tor-4d4eda89a1d0f3b19b408349d602bf7ba47e1cdb.tar.gz tor-4d4eda89a1d0f3b19b408349d602bf7ba47e1cdb.zip |
Merge branch 'maint-0.4.0'
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/or-tools/check-tor | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/contrib/or-tools/check-tor b/contrib/or-tools/check-tor deleted file mode 100755 index e981a35fcc..0000000000 --- a/contrib/or-tools/check-tor +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/sh - -## Originally written by Peter Palfrader. - -## This script lets you quickly check if a given router (by nickname) -## will let you do a TLS handshake, or will let you download a directory. - -## Usage: check-tor nickname - -#set -x - -router="$1" -dirserver="http://belegost.seul.org:80/tor/" - -lines=$( wget -q $dirserver --proxy=off -O - | grep -A5 '^router '"$router"' ' ) -line=$( echo "$lines" | head -n1 ) - -if [ -z "$line" ]; then - echo "Not found" >&2 - exit 1 -fi - -echo "$lines" -echo - -ipor=$( echo "$line" | awk '{printf "%s:%s", $3, $4}' ) - -op=$( echo "$line" | awk '{printf $6}' ) -ipop=$( echo "$line" | awk '{printf "%s:%s", $3, $6}' ) - -echo -echo ">>" openssl s_client -connect "$ipor" -timeout 5 openssl s_client -connect "$ipor" < /dev/null -if [ "$op" != "0" ]; then - echo - echo ">>" wget --proxy=off -O - http://$ipop/tor/ - timeout 5 wget --proxy=off -O - http://$ipop/tor/ | head -n3 -fi - -echo -echo -n "$router "; echo "$lines" | grep 'fingerprint' | sed -e 's/^opt //' -e 's/^fingerprint //'; |