From b2094395a5895b596f3d7182d23da3a4ef1fb493 Mon Sep 17 00:00:00 2001 From: makefu Date: Tue, 3 Sep 2013 01:53:27 +0200 Subject: update minikrebs --- minikrebs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minikrebs b/minikrebs index d44469e4..fa0c14a2 160000 --- a/minikrebs +++ b/minikrebs @@ -1 +1 @@ -Subproject commit d44469e4fa51171c12fff95b1a3170eb85328698 +Subproject commit fa0c14a2c221da6e1f2f04c75fe8ed6bff858a61 -- cgit v1.2.3 From 67ddf2c41e1285b2a1f11ff3eca8c3d9a7a377c5 Mon Sep 17 00:00:00 2001 From: makefu Date: Tue, 3 Sep 2013 01:57:41 +0200 Subject: allow to override voice in util/bin/naturalvoices.att --- util/bin/naturalvoices.att | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/bin/naturalvoices.att b/util/bin/naturalvoices.att index 4590d913..ea893fc0 100755 --- a/util/bin/naturalvoices.att +++ b/util/bin/naturalvoices.att @@ -6,7 +6,7 @@ cd $(dirname $(readlink -f $0)) : ${1?please provide \$1 as text} text=$(echo $* | sed 's/ /+/g') -voice="reiner" +voice="${voice:-reiner}" OUTFILE="`mktemp /tmp/voice.XXXXXXXX`" trap "rm $OUTFILE" TERM INT EXIT -- cgit v1.2.3 From 534824c768f5731f4e9ccd6983bb9d0f9cfd8590 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 22 Sep 2013 12:28:27 +0200 Subject: ivan: add 'Achtung Achtung' --- god/ivan/ivan | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/god/ivan/ivan b/god/ivan/ivan index c35cccf7..136527f4 100755 --- a/god/ivan/ivan +++ b/god/ivan/ivan @@ -8,6 +8,8 @@ k="${noise_capital-0}" a="${noise_amplitude-600}" g="${noise_gap-1}" RND_DELAY=3600 +CACHE_DIR=/opt/ivan-cache +export CACHE_DIR #set -x function helpme () { @@ -29,6 +31,8 @@ do if [ -n "${USING_ESPEAK:-}" ];then espeak -v $v -p $p -k $k -a $a -g $g "`shuf \"$SATZ_LISTE\" | tail -1`" else + ./naturalvoices_cached.sh "Achtung, Achtung, es erfolgt eine Durchsage!" + sleep 0.3 ./naturalvoices_cached.sh "`shuf \"$SATZ_LISTE\" | tail -1`" fi [ ! "${1:-}" = "-d" ] && exit 0 # break if not daemonized -- cgit v1.2.3 From 67971e0aceacc59fad54a72a28e7c29b3ac3c81e Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 23 Sep 2013 14:52:49 +0200 Subject: add filepimp --- retiolum/hosts/filepimp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 retiolum/hosts/filepimp diff --git a/retiolum/hosts/filepimp b/retiolum/hosts/filepimp new file mode 100644 index 00000000..c689c885 --- /dev/null +++ b/retiolum/hosts/filepimp @@ -0,0 +1,11 @@ +Subnet = 10.243.153.102 +Subnet = 42:4b0b:d990:55ba:8da8:630f:dc0e:aae0 + +-----BEGIN RSA PUBLIC KEY----- +MIIBCgKCAQEA43w+A1TMOfugZ/CVwilJn4c36wWSjihaeVe7suZD0DSscKBcbkGg +3dTCSTnu6Qb9sYd2mKebKXLreO6nhEEoFGsRU0yw/1h8gl7mWYEdTifPfvM5EWwS +wkN9dJ5njwIUSRyWH7QTsLkiRJVFN2UxEwrhAbo1FJ7yuhRgAKqKJSN4yPVViZwR +oHyyobvm/i2J+XSiDI9MRo74vNjnDLvO7R6ErIrhOPP1bD9fx3u+UYUfgS0iCO3X +UN0duBz/faRcl6IRytZOuHaIp30eJ4850ZK8RPz/Dqqj+USMFq60i0oMsuAi/ljB +8b+eQBt6OXu4MSntxoR8Ja7ht+EOTDnBOwIDAQAB +-----END RSA PUBLIC KEY----- -- cgit v1.2.3 From 8266a20bd359e2cddfa39a7e437f39cc065f714f Mon Sep 17 00:00:00 2001 From: momo Date: Wed, 25 Sep 2013 21:00:21 +0200 Subject: adding warum hast du denn ne maske auf complement --- god/ivan/satz-liste | 1 + 1 file changed, 1 insertion(+) diff --git a/god/ivan/satz-liste b/god/ivan/satz-liste index 048943ee..880bba45 100644 --- a/god/ivan/satz-liste +++ b/god/ivan/satz-liste @@ -37,3 +37,4 @@ mache dich mit den standorten der feuerlöscher vertraut Steuerung Alt Entfernen Leute die Nubsies von Netzwerk kabeln abbrechen, werden geschlagen Setz dich, nimm dir nen Keks, machs dir Schön bequem +warum liegt denn hier stroh rum -- cgit v1.2.3 From 63bb2160fb16c28f5ba3275876310b5971eb6f98 Mon Sep 17 00:00:00 2001 From: momo Date: Wed, 25 Sep 2013 22:08:44 +0200 Subject: adding soundfile --- god/ivan/announce.wav | Bin 0 -> 691244 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 god/ivan/announce.wav diff --git a/god/ivan/announce.wav b/god/ivan/announce.wav new file mode 100644 index 00000000..54ec73cf Binary files /dev/null and b/god/ivan/announce.wav differ -- cgit v1.2.3 From 9f3a8aff6cfb84cf7ad43d917050126cf54c7d8b Mon Sep 17 00:00:00 2001 From: momo Date: Wed, 25 Sep 2013 22:12:04 +0200 Subject: adding sound output --- god/ivan/ivan | 1 + 1 file changed, 1 insertion(+) diff --git a/god/ivan/ivan b/god/ivan/ivan index 136527f4..f8cbcb8b 100755 --- a/god/ivan/ivan +++ b/god/ivan/ivan @@ -28,6 +28,7 @@ EOF while true do + aplay announce.wav if [ -n "${USING_ESPEAK:-}" ];then espeak -v $v -p $p -k $k -a $a -g $g "`shuf \"$SATZ_LISTE\" | tail -1`" else -- cgit v1.2.3 From a6687a954eedfc9ab1b72dcc0d3cc03fca741942 Mon Sep 17 00:00:00 2001 From: makefu Date: Thu, 26 Sep 2013 01:27:05 +0200 Subject: tor.sh: initial vomit --- boot/tor.sh | 80 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100755 boot/tor.sh diff --git a/boot/tor.sh b/boot/tor.sh new file mode 100755 index 00000000..d257e955 --- /dev/null +++ b/boot/tor.sh @@ -0,0 +1,80 @@ +#!/bin/sh +set -efu +msg() { printf "$@\n" >&2 ;} +info() { msg "** $@" ;} +error() { msg "!! $@" ;} +exists(){ type "$1" >/dev/null 2>/dev/null; } +get_hostname(){ + # finds the current hostname + # if ENV HOSTN is set echo $HOSTN + + if [ -n "${HOSTN:-}" ] ; then printf "${HOSTN:-}" + elif exists hostname ; then printf "${HOSTNAME:-$(hostname)}" + elif exists uci ; then printf "$(uci get system.@system[0].hostname)" + elif [ -e /etc/hostname ] ;then printf "$(cat /etc/hostname)" + else printf "unknown" + fi +} + +anytelnet(){ + # find Telnet or similar + # requires exist + # if env TELNET is set, will be trying to run this + if [ -e "${TELNET:-does_not_exist}" ]; then + info"Will be using $TELNET as Telnet Client" + elif exists telnet >/dev/null;then + TELNET="`command -v telnet`" + elif exists nc >/dev/null;then + TELNET="`command -v nc`" + elif exists netcat >/dev/null;then + TELNET="`command -v netcat`" + elif exists busybox >/dev/null;then + TELNET="`command -v busybox` telnet" + else + error "Cannot find telnet binary, please install either telnet-client or busybox or netcat or provided TELNET environment.\nbailing out!" + return 1 + fi + $TELNET $@ +} + +send_irc(){ + to_dots(){ while read line; do printf .; done;} + ## reads from stdin, writes to IRC + ## + ## requires func: exists() anytelnet() + if [ -z "${HOSTN:-}" ]; then + HOSTN="$(get_hostname)" + info "no HOSTN given, using $HOSTN instead" + fi + IRCCHANNEL=${IRCCHANNEL:-"#krebs_incoming"} + IRCSERVER=${IRCSERVER:-"irc.freenode.net"} + IRCPORT=${IRCPORT:-6667} + NICK="${HOSTN}_$(head /dev/urandom | tr -dc "0123456789" | head -c3)" + info "starting irc connect as $NICK" + ( echo "NICK $NICK"; + echo "USER $NICK $IRCSERVER bla : $NICK"; + echo "JOIN $IRCCHANNEL"; + sleep 23; + while read line; do echo "PRIVMSG $IRCCHANNEL :$line";sleep 1;done + sleep 5; ) | anytelnet $IRCSERVER $IRCPORT 2>/dev/null | to_dots +} + +# can be set via env: +# torrc - path to torrc (default: /etc/tor/torrc ) +# hidden_service_dir - path to hidden service (default: /var/lib/tor/hidden_service/ ) + +torrc=${torrc:-/etc/tor/torrc} +hidden_service_dir=${hidden_service_dir:-/var/lib/tor/hidden_service/} + +test -w "$torrc" || ( error "$torrc is not writable!"; exit 1 ) +if ! grep -q '^HiddenService' "$torrc" ;then + info "adding hidden service to $torrc" + cat >> "$torrc" << EOF +HiddenServiceDir ${hidden_service_dir} +HiddenServicePort 22 127.0.0.1:22 +EOF +else + info "HiddenServiceDir or Port already in $torrc, skipping!" +fi + +cat $hidden_service_dir/hostname | send_irc -- cgit v1.2.3 From 38f2046f50ee585977babf10b522bcfeeb78850a Mon Sep 17 00:00:00 2001 From: makefu Date: Thu, 26 Sep 2013 13:09:57 +0200 Subject: temporary remove cband --- retiolum/hosts/cband | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 retiolum/hosts/cband diff --git a/retiolum/hosts/cband b/retiolum/hosts/cband deleted file mode 100644 index 13affe45..00000000 --- a/retiolum/hosts/cband +++ /dev/null @@ -1,11 +0,0 @@ -Subnet = 10.243.254.234 -Subnet = 42:28e1:44f0:b33f:6b56:b974:e933:3223 - ------BEGIN RSA PUBLIC KEY----- -MIIBCgKCAQEA4LKFb2tfFwWrh79+J5Zpc2Y0egw/YcSwCrpyfHshrxnnXKyJfar9 -ZEtQwmKzzNflszvSyixdVfh/TJnGTJ6dCVGYvonARQiCyBvHMqF9WCVsgc7V2/dp -2Lg2XsYzyoqd/IxAMGDPNGYfKM5ll3VzKWDgk4VhlBbU5pES/oiq/nkEDT3DkDW8 -8fXQvW8w/mc2s96wNobZVlnghF3+RklfIfOeoj/eM/DoVmmJyKmHlkkvJCE9tn7M -xylJ8JoOnfXGJW7WVsNaIven+OkVFzyTAG+qeCitH0o8NA9ArIhxS7RwoDYv/pDC -CBHXkVKriQLClSDirs4woqFVz+iMhnNS7wIDAQAB ------END RSA PUBLIC KEY----- -- cgit v1.2.3 From d23bb310a7306950b45400816134010a9a7a9ed3 Mon Sep 17 00:00:00 2001 From: makefu Date: Thu, 26 Sep 2013 13:12:10 +0200 Subject: readd cband --- retiolum/hosts/cband | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 retiolum/hosts/cband diff --git a/retiolum/hosts/cband b/retiolum/hosts/cband new file mode 100644 index 00000000..51c51e9c --- /dev/null +++ b/retiolum/hosts/cband @@ -0,0 +1,11 @@ +Subnet = 10.243.7.76 +Subnet = 42:c293:090f:df44:0926:c7af:5012:7cd8 + +-----BEGIN RSA PUBLIC KEY----- +MIIBCgKCAQEA11kwqXkkDRmxmoZNFDqtUsxK6d/HzTdFC/v1V3fttePuYFiEOhZl +rLBS3+Eei4CsQrOwnaRBhHdnoOZGEdxJmq3YXDWGoVAn4bEgommCddzssVzWtVMf +hIntuCExczEMIY+MGzM3QupYxUgRRVjFtvxoC9kKOSlaq0BhkdJiWygzN/NUfqpv +HgDufoAcORLQInTpmQYEkZO+XmXejcCY/C+VD0MENqj3SijGw9tm2YmInwSwZnwX +Zjh2xn96QbV9O7bpfGHcLxWhsUyyRC46knbbBXuAdbDsa2TUdzT5D7nb/TLfP412 +agIhk+cwFM24y/ChHdfoUBakKF4wZI3l4wIDAQAB +-----END RSA PUBLIC KEY----- -- cgit v1.2.3