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/peer2anonet/peer2anonet | 42 +++++++++++++++++++++++++-- contrib/splicex/CHANGES | 63 ----------------------------------------- contrib/splicex/DEBIAN/control | 2 +- contrib/splicex/LICENSE | 22 -------------- contrib/splicex/README | 10 ------- contrib/splicex/src/manual | 13 --------- contrib/splicex/src/splicex.pyx | 12 -------- 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 ------ 13 files changed, 94 insertions(+), 178 deletions(-) delete mode 100644 contrib/splicex/CHANGES delete mode 100644 contrib/splicex/LICENSE 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 diff --git a/contrib/peer2anonet/peer2anonet b/contrib/peer2anonet/peer2anonet index fb8564f..1893439 100755 --- a/contrib/peer2anonet/peer2anonet +++ b/contrib/peer2anonet/peer2anonet @@ -10,7 +10,9 @@ USAGE(){ echo -e '\n --update regenerate peer configurations' echo -e '\n --configure-peer generate a new peer configuration and update' echo -e '\n --rm-peer remove a peer configuration and update' - echo -e '\n --install-daemontools installs daemontools\n' + echo -e '\n --install-daemontools installs daemontools' + echo -e '\n --install-ucspi-tcp installs ucspi-tcp' + echo -e '\n --install-djbdns installs djbdns\n' exit 0 } @@ -282,6 +284,36 @@ INSTALL_DAEMONTOOLS(){ package/install } +INSTALL_UCSPI_TCP(){ + [[ $(echo X`which gcc`) == X ]] && echo ' error: cannot find gcc' + [[ $(echo X`which gcc`) == X ]] && exit 1 + [[ $(echo X`which make`) == X ]] && echo ' error: cannot find make' + [[ $(echo X`which make`) == X ]] && exit 1 + cd /usr/local/src + wget http://cr.yp.to/ucspi-tcp/ucspi-tcp-0.88.tar.gz + gunzip ucspi-tcp-0.88.tar + tar -xf ucspi-tcp-0.88.tar + cd ucspi-tcp-0.88 + sed -i 's/gcc/gcc -include errno.h/g' src/conf-cc + make + make setup check + } + +INSTALL_DJBDNS(){ + [[ $(echo X`which gcc`) == X ]] && echo ' error: cannot find gcc' + [[ $(echo X`which gcc`) == X ]] && exit 1 + [[ $(echo X`which make`) == X ]] && echo ' error: cannot find make' + [[ $(echo X`which make`) == X ]] && exit 1 + cd /usr/local/src + wget http://cr.yp.to/djbdns/djbdns-1.05.tar.gz + gunzip djbdns-1.05.tar + tar -xf djbdns-1.05.tar + cd djbdns-1.05 + echo gcc -O2 -include /usr/include/errno.h > conf-cc + make + make setup check + } + if [ "$1" == '--configure' ]; then CONFIGURE @@ -293,8 +325,12 @@ elif [ "$1" == '--configure-peer' ]; then elif [ "$1" == '--rm-peer' ]; then RM_PEER UPDATE -elif [ "$1" == '--rm-peer' ]; then - INSTALL_DAEMONTOOLS +elif [ "$1" == '--install-daemontools' ]; then + INSTALL_CORE +elif [ "$1" == '--install-ucspi-tcp' ]; then + INSTALL_UCSPI_TCP +elif [ "$1" == '--install-djbdns' ]; then + INSTALL_DJBDNS else USAGE fi diff --git a/contrib/splicex/CHANGES b/contrib/splicex/CHANGES deleted file mode 100644 index aefb866..0000000 --- a/contrib/splicex/CHANGES +++ /dev/null @@ -1,63 +0,0 @@ -CHANGES: - - d3v11 - Sat Oct 22 2011: - - SpliceX is the new replacement for Splice3. - it includes some new options and should be - compatible with most versions of Python. - - see README, splicex --help, splicex --rtfm - - d3v11 - Sun Oct 23 2011: - - Added some colour enhancements to SpliceX - :-). This is a useless update but i thought - it was fun. - - Also, I trimmed down much unnecessary - code. - - 'deshadow' bug fixed in splicex.py src - - d3v11 - Fri Oct 28 2011: - - SpliceX now compiles to machine language - via Cython. see README for dependencies - and installation details. - - SpliceX compiler flags patched. recent - update did not distinguish: - - /usr/include/ - - -FROM- - - /usr/local/include/ - - Thus, if you have debian python-dev or - source python-dev the ./configure script - should choose the appropriate option. - if the configure still failed to locate - the python development files (headers) - please let me know and I will correct. - - SpliceX can now optionally do a pure - python install. This cuts down on - dependencies and is useful if you just - want to test, try, and/or debug. - - SpliceX now detects invalid arguments - and prints with error message. - - d3v11 - Sat Oct 29 2011: - - Old timing bug is now fixed. --time now - how a consistant tracking of how many - passwords and how much time has elapsed - among each brute force algorithm. This - new patch also simplified the code and - makes the functions faster. Much code - has been trimmed from splicex without - removing any options or functionality. - - --no-char bug fixed diff --git a/contrib/splicex/DEBIAN/control b/contrib/splicex/DEBIAN/control index 4bc2760..8f97b98 100644 --- a/contrib/splicex/DEBIAN/control +++ b/contrib/splicex/DEBIAN/control @@ -7,6 +7,6 @@ Package: Splicex Architecture: all Depends: python2.6 (>= 2.6) Description: SpliceX - brute force utilities for the linux shell. + Brute Force Utilities For GNU/Linux. diff --git a/contrib/splicex/LICENSE b/contrib/splicex/LICENSE deleted file mode 100644 index 87f9e86..0000000 --- a/contrib/splicex/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ - __________ _ _ __ __ ______ - / / / / ___| _ __ | (_) ___ ___\ \/ / / / / / - / / / /\___ \| '_ \| | |/ __/ _ \\ / / / / / - / / / / ___) | |_) | | | (_| __// \ / / / / - /_/_/_/ |____/| .__/|_|_|\___\___/_/\_\/_/_/_/ - |_| - - - - .:Brute Force Utilities For GNU/Linux:. - - - - SpliceX is free software: you can redistribute it and/or modify it under - the terms of the GNU General Public License as published by the Free - Software Foundation, either version 3 of the License, or (at your option) - any later version. - - SpliceX is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. diff --git a/contrib/splicex/README b/contrib/splicex/README index 8cbe4ee..69b78f5 100644 --- a/contrib/splicex/README +++ b/contrib/splicex/README @@ -7,16 +7,6 @@ .:Brute Force Utilities For GNU/Linux:. - SpliceX is free software: you can redistribute it and/or modify it under - the terms of the GNU General Public License as published by the Free - Software Foundation, either version 3 of the License, or (at your option) - any later version. - - SpliceX is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. http://www.gnu.org/licenses/ - AUTHOR: d3v11 diff --git a/contrib/splicex/src/manual b/contrib/splicex/src/manual index f11acc0..8453157 100644 --- a/contrib/splicex/src/manual +++ b/contrib/splicex/src/manual @@ -8,19 +8,6 @@ .:Brute Force Utilities For GNU/Linux:. - - SpliceX is free software: you can redistribute it and/or modify it under - the terms of the GNU General Public License as published by the Free - Software Foundation, either version 3 of the License, or (at your option) - any later version. - - SpliceX is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - - .SH OPTIONS diff --git a/contrib/splicex/src/splicex.pyx b/contrib/splicex/src/splicex.pyx index 206cee6..abf9057 100644 --- a/contrib/splicex/src/splicex.pyx +++ b/contrib/splicex/src/splicex.pyx @@ -22,18 +22,6 @@ def HELP(): print('') print('') print('') - print(' SpliceX is free software: you can redistribute it and/or modify it under ') - print(' the terms of the GNU General Public License as published by the Free ') - print(' Software Foundation, either version 3 of the License, or (at your option)') - print(' any later version. ') - print('') - print(' SpliceX is distributed in the hope that it will be useful, but WITHOUT ') - print(' ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or ') - print(' FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ') - print(' for more details. ') - print('') - print('') - print('') print(Red + ' --help ' + DefColour + 'Show help display and exit') print('') print(Red + ' --command ' + DefColour + 'Parse passwords to this command') 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