Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Commit b761f57

Browse files
committed
directory/doggiebag/download.sh: new host, use zlib from python2 instead of openssl
1 parent 6dc5993 commit b761f57

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

directory/doggiebag/download.sh

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
#!/bin/sh
22

3-
host="18.181.5.37:9032"
3+
host="18.85.22.239:80"
4+
5+
zlibd() (python2 -c "import zlib,sys;sys.stdout.write(zlib.decompress(sys.stdin.read()))")
46

57
echo -e "package doggiebag\nimport \"time\"\nvar Time = time.Unix($(date +%s), 0)" > time.go
6-
curl -# "http://$host/tor/keys/all.z" | openssl zlib -d > keys
7-
curl -# "http://$host/tor/status-vote/current/consensus-microdesc.z" | openssl zlib -d > consensus-microdesc
8+
curl -# "http://$host/tor/keys/all.z" | zlibd > keys
9+
curl -# "http://$host/tor/status-vote/current/consensus-microdesc.z" | zlibd > consensus-microdesc
810

911
(
1012
grep '^m' consensus-microdesc |
1113
cut -d' ' -f2 |
1214
xargs -n92 echo |
1315
tr ' ' '-' |
1416
while read batch; do
15-
curl -# "http://$host/tor/micro/d/$batch.z" | openssl zlib -d
17+
curl -# "http://$host/tor/micro/d/$batch.z" | zlibd
1618
done
1719
) > microdescriptors
1820

0 commit comments

Comments
 (0)