1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- set -u;
- set -e;
- authority="http://tor.noreply.org:80/tor/status/authority";
- nickname="$1";
- fp=`wget -q -O - $authority | \
- awk '$1 == "r" && $2 == "'$nickname'" {printf "%s===", $3}' | \
- perl -MMIME::Base64 -e "print unpack(\"H*\", decode_base64(<>)),\"\n\"";`
- if [ "$fp" != "" ];
- then
- wget -q -O - http://tor.noreply.org:80/tor/server/fp/$fp;
- exit $?;
- else
- echo "It appears the nickname is not currently known by the directory authority.";
- exit 1;
- fi
|