From d767f074c4182059b51c48995c6e4e3902228f4d Mon Sep 17 00:00:00 2001 From: d3v11 Date: Fri, 25 Nov 2011 23:21:28 +0000 Subject: updated my software to resdb --- contrib/tor2dns/README | 32 ++++++++++++++++++++++++++++++++ contrib/tor2dns/run | 13 +++++++++++++ contrib/tor2dns/serve | 9 +++++++++ contrib/tor2dns/tor2dns/README | 32 -------------------------------- contrib/tor2dns/tor2dns/run | 13 ------------- contrib/tor2dns/tor2dns/serve | 9 --------- 6 files changed, 54 insertions(+), 54 deletions(-) create mode 100644 contrib/tor2dns/README create mode 100755 contrib/tor2dns/run create mode 100755 contrib/tor2dns/serve delete mode 100644 contrib/tor2dns/tor2dns/README delete mode 100755 contrib/tor2dns/tor2dns/run delete mode 100755 contrib/tor2dns/tor2dns/serve (limited to 'contrib/tor2dns') diff --git a/contrib/tor2dns/README b/contrib/tor2dns/README new file mode 100644 index 0000000..5194c76 --- /dev/null +++ b/contrib/tor2dns/README @@ -0,0 +1,32 @@ +DESCRIPTION: + tor2dns is a quick solution to non-free + and centralized dns. + +DEPENDS: + tor, daemontools, python + +INSTALL: + +mkdir /var/lib/tor/tor2dns +echo 'HiddenServiceDir /var/lib/tor/tor2dns' >> /etc/tor/torrc +echo 'HiddenServicePort 8053 127.0.0.1:8053' >> /etc/tor/torrc + +#See note below, you may need to use the commented line. +#chown debian-tor /var/lib/tor/tor2dns + +/etc/init.d/tor restart +mkdir /services/tor2dns +tar -xvf tor2dns.tgz --directory='/services' +cd / +ln -s /services/tor2dns /service +echo 'new dns link >>> http://'`cat /var/lib/tor/tor2dns/hostname`':8053' + +UPDATE: + +# pull a copy from AnoNet2 +wget http://d3v11.ano/tor2dns.tgz + +NOTE: + On some systems /var/lib/tor/tor2dns will need a special owner + like "debian-tor". If tor2dns fails for you please troubleshoot + your logs. diff --git a/contrib/tor2dns/run b/contrib/tor2dns/run new file mode 100755 index 0000000..1e543a9 --- /dev/null +++ b/contrib/tor2dns/run @@ -0,0 +1,13 @@ +#!/bin/bash +GETIP() { + while true; do + wget 'http://www.showmyip.com/simple/' -O index.html + sleep 5h + done + } + +[ -e SHARE ] || mkdir SHARE +cd SHARE +../serve & +GETIP + diff --git a/contrib/tor2dns/serve b/contrib/tor2dns/serve new file mode 100755 index 0000000..0274b74 --- /dev/null +++ b/contrib/tor2dns/serve @@ -0,0 +1,9 @@ +#!/usr/bin/python +import SimpleHTTPServer +import SocketServer + +PORT = 8053 + +Handler = SimpleHTTPServer.SimpleHTTPRequestHandler +httpd = SocketServer.TCPServer(("", PORT), Handler) +httpd.serve_forever() diff --git a/contrib/tor2dns/tor2dns/README b/contrib/tor2dns/tor2dns/README deleted file mode 100644 index 5194c76..0000000 --- a/contrib/tor2dns/tor2dns/README +++ /dev/null @@ -1,32 +0,0 @@ -DESCRIPTION: - tor2dns is a quick solution to non-free - and centralized dns. - -DEPENDS: - tor, daemontools, python - -INSTALL: - -mkdir /var/lib/tor/tor2dns -echo 'HiddenServiceDir /var/lib/tor/tor2dns' >> /etc/tor/torrc -echo 'HiddenServicePort 8053 127.0.0.1:8053' >> /etc/tor/torrc - -#See note below, you may need to use the commented line. -#chown debian-tor /var/lib/tor/tor2dns - -/etc/init.d/tor restart -mkdir /services/tor2dns -tar -xvf tor2dns.tgz --directory='/services' -cd / -ln -s /services/tor2dns /service -echo 'new dns link >>> http://'`cat /var/lib/tor/tor2dns/hostname`':8053' - -UPDATE: - -# pull a copy from AnoNet2 -wget http://d3v11.ano/tor2dns.tgz - -NOTE: - On some systems /var/lib/tor/tor2dns will need a special owner - like "debian-tor". If tor2dns fails for you please troubleshoot - your logs. diff --git a/contrib/tor2dns/tor2dns/run b/contrib/tor2dns/tor2dns/run deleted file mode 100755 index 1e543a9..0000000 --- a/contrib/tor2dns/tor2dns/run +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash -GETIP() { - while true; do - wget 'http://www.showmyip.com/simple/' -O index.html - sleep 5h - done - } - -[ -e SHARE ] || mkdir SHARE -cd SHARE -../serve & -GETIP - diff --git a/contrib/tor2dns/tor2dns/serve b/contrib/tor2dns/tor2dns/serve deleted file mode 100755 index 0274b74..0000000 --- a/contrib/tor2dns/tor2dns/serve +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/python -import SimpleHTTPServer -import SocketServer - -PORT = 8053 - -Handler = SimpleHTTPServer.SimpleHTTPRequestHandler -httpd = SocketServer.TCPServer(("", PORT), Handler) -httpd.serve_forever() -- cgit v1.2.3