From 732876299f4dccb4caa3a915879d2b5945bbdd42 Mon Sep 17 00:00:00 2001
From: makefu <github@syntax-fehler.de>
Date: Wed, 2 Apr 2014 11:15:54 +0200
Subject: filehooker is now elchOS

---
 .../root-image/krebs/bin/add-reaktor-secret.sh     |  24 ----
 filehooker/root-image/krebs/bin/macid.sh           |   2 -
 filehooker/root-image/krebs/bin/reaktor-shell.sh   |   4 -
 .../root-image/krebs/bin/refresh-shares.ship       |  11 --
 filehooker/root-image/krebs/bin/set-hostname.sh    |   5 -
 filehooker/root-image/krebs/bin/start-ncdc.ship    |  23 ----
 .../root-image/krebs/bin/tor-get-hidden-service.sh |   2 -
 .../krebs/bin/tor_configure_hidden_service.ship    |  16 ---
 .../root-image/krebs/bin/tor_publish_ssh.ship      |  12 --
 filehooker/root-image/krebs/bin/update-search.sh   |   5 -
 .../root-image/krebs/bin/vim_sane_defaults.ship    |  10 --
 filehooker/root-image/krebs/etc/Reaktor/admin.lst  |   0
 filehooker/root-image/krebs/etc/Reaktor/auth.lst   |   0
 .../root-image/krebs/etc/Reaktor/commands/ftpget   |  58 --------
 .../root-image/krebs/etc/Reaktor/commands/identify |  22 ---
 .../root-image/krebs/etc/Reaktor/commands/io       |  25 ----
 .../root-image/krebs/etc/Reaktor/commands/ips      |   2 -
 .../krebs/etc/Reaktor/commands/list_downloads      |   8 --
 .../root-image/krebs/etc/Reaktor/commands/onion    |   3 -
 .../root-image/krebs/etc/Reaktor/commands/reboot   |   3 -
 .../krebs/etc/Reaktor/commands/refresh_shares      |   4 -
 .../root-image/krebs/etc/Reaktor/commands/shares   |   2 -
 .../krebs/etc/Reaktor/commands/update-search       |   3 -
 filehooker/root-image/krebs/etc/Reaktor/config.py  |  60 --------
 filehooker/root-image/krebs/etc/authorized_keys    |   6 -
 filehooker/root-image/krebs/etc/vsftpd.conf        |  12 --
 filehooker/root-image/krebs/lib/_punani_db         |  57 --------
 filehooker/root-image/krebs/lib/color              |   7 -
 filehooker/root-image/krebs/lib/core               |  80 -----------
 filehooker/root-image/krebs/lib/filehooker         | 152 ---------------------
 filehooker/root-image/krebs/lib/iso                |   7 -
 filehooker/root-image/krebs/lib/krebs              |  16 ---
 filehooker/root-image/krebs/lib/network            | 100 --------------
 filehooker/root-image/krebs/lib/punani             |  99 --------------
 filehooker/root-image/krebs/lib/retiolum           |  99 --------------
 filehooker/root-image/krebs/lib/tahoe              |  34 -----
 filehooker/root-image/krebs/lib/tor                |  19 ---
 filehooker/root-image/krebs/lib/vim                |  40 ------
 38 files changed, 1032 deletions(-)
 delete mode 100755 filehooker/root-image/krebs/bin/add-reaktor-secret.sh
 delete mode 100755 filehooker/root-image/krebs/bin/macid.sh
 delete mode 100755 filehooker/root-image/krebs/bin/reaktor-shell.sh
 delete mode 100755 filehooker/root-image/krebs/bin/refresh-shares.ship
 delete mode 100755 filehooker/root-image/krebs/bin/set-hostname.sh
 delete mode 100755 filehooker/root-image/krebs/bin/start-ncdc.ship
 delete mode 100755 filehooker/root-image/krebs/bin/tor-get-hidden-service.sh
 delete mode 100755 filehooker/root-image/krebs/bin/tor_configure_hidden_service.ship
 delete mode 100755 filehooker/root-image/krebs/bin/tor_publish_ssh.ship
 delete mode 100755 filehooker/root-image/krebs/bin/update-search.sh
 delete mode 100755 filehooker/root-image/krebs/bin/vim_sane_defaults.ship
 delete mode 100644 filehooker/root-image/krebs/etc/Reaktor/admin.lst
 delete mode 100644 filehooker/root-image/krebs/etc/Reaktor/auth.lst
 delete mode 100755 filehooker/root-image/krebs/etc/Reaktor/commands/ftpget
 delete mode 100755 filehooker/root-image/krebs/etc/Reaktor/commands/identify
 delete mode 100755 filehooker/root-image/krebs/etc/Reaktor/commands/io
 delete mode 100755 filehooker/root-image/krebs/etc/Reaktor/commands/ips
 delete mode 100755 filehooker/root-image/krebs/etc/Reaktor/commands/list_downloads
 delete mode 100755 filehooker/root-image/krebs/etc/Reaktor/commands/onion
 delete mode 100755 filehooker/root-image/krebs/etc/Reaktor/commands/reboot
 delete mode 100755 filehooker/root-image/krebs/etc/Reaktor/commands/refresh_shares
 delete mode 100755 filehooker/root-image/krebs/etc/Reaktor/commands/shares
 delete mode 100755 filehooker/root-image/krebs/etc/Reaktor/commands/update-search
 delete mode 100644 filehooker/root-image/krebs/etc/Reaktor/config.py
 delete mode 100644 filehooker/root-image/krebs/etc/authorized_keys
 delete mode 100644 filehooker/root-image/krebs/etc/vsftpd.conf
 delete mode 100644 filehooker/root-image/krebs/lib/_punani_db
 delete mode 100644 filehooker/root-image/krebs/lib/color
 delete mode 100644 filehooker/root-image/krebs/lib/core
 delete mode 100644 filehooker/root-image/krebs/lib/filehooker
 delete mode 100644 filehooker/root-image/krebs/lib/iso
 delete mode 100644 filehooker/root-image/krebs/lib/krebs
 delete mode 100644 filehooker/root-image/krebs/lib/network
 delete mode 100644 filehooker/root-image/krebs/lib/punani
 delete mode 100644 filehooker/root-image/krebs/lib/retiolum
 delete mode 100644 filehooker/root-image/krebs/lib/tahoe
 delete mode 100644 filehooker/root-image/krebs/lib/tor
 delete mode 100644 filehooker/root-image/krebs/lib/vim

(limited to 'filehooker/root-image/krebs')

diff --git a/filehooker/root-image/krebs/bin/add-reaktor-secret.sh b/filehooker/root-image/krebs/bin/add-reaktor-secret.sh
deleted file mode 100755
index 92681449..00000000
--- a/filehooker/root-image/krebs/bin/add-reaktor-secret.sh
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/sh
-set -euf
-green='\e[0;32m'
-red='\e[0;31m'
-nc='\e[0m'
-black='\e[0;30m'
-
-printf "${green}Add a Reaktor Secret ${nc}\n"
-printf "${red}(no spaces in input plox)${nc}\n"
-
-nick=${1:-}
-while test -z "${nick:-}" ;do
-  printf "provide Nick Name:\n"
-  read nick
-done
-
-secret=${2:-}
-while test -z "${secret:-}" ;do
-  printf "provide Secret:$black\n" 
-  read secret
-done
-
-echo "$nick $secret" >> /krebs/painload/Reaktor/admin.lst
-printf "${green}done${nc}"
diff --git a/filehooker/root-image/krebs/bin/macid.sh b/filehooker/root-image/krebs/bin/macid.sh
deleted file mode 100755
index 0fccc84b..00000000
--- a/filehooker/root-image/krebs/bin/macid.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-ip addr | grep ether | awk '{print $2}' | sort |md5sum | awk '{print $1}' | dd bs=1 count=6 2>/dev/null
diff --git a/filehooker/root-image/krebs/bin/reaktor-shell.sh b/filehooker/root-image/krebs/bin/reaktor-shell.sh
deleted file mode 100755
index 117c64f6..00000000
--- a/filehooker/root-image/krebs/bin/reaktor-shell.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-echo "IP Addresses:"
-/krebs/painload/Reaktor/commands/ips || echo "no IPs!"
-/krebs/bin/add-reaktor-secret.sh
diff --git a/filehooker/root-image/krebs/bin/refresh-shares.ship b/filehooker/root-image/krebs/bin/refresh-shares.ship
deleted file mode 100755
index 364d7758..00000000
--- a/filehooker/root-image/krebs/bin/refresh-shares.ship
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/sh
-#TODO:
-#!/usr/bin/env ship
-set -euf
-#@include filehooker
-. /krebs/lib/filehooker
-ncdc_user="hooker"
-
-share_all_partitions
-systemctl restart hddtemp.service
-exit 0
diff --git a/filehooker/root-image/krebs/bin/set-hostname.sh b/filehooker/root-image/krebs/bin/set-hostname.sh
deleted file mode 100755
index 31101a18..00000000
--- a/filehooker/root-image/krebs/bin/set-hostname.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-hostn="elch_$(/krebs/bin/macid.sh)"
-hostnamectl set-hostname "$hostn"
-hostname $hostn
-echo "$hostn" > /etc/hostname
diff --git a/filehooker/root-image/krebs/bin/start-ncdc.ship b/filehooker/root-image/krebs/bin/start-ncdc.ship
deleted file mode 100755
index 1d47bcfb..00000000
--- a/filehooker/root-image/krebs/bin/start-ncdc.ship
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/usr/bin/env ship
-set -euf
-#@include filehooker
-. /krebs/lib/filehooker
-#@include network
-ncdc_user="hooker"
-
-useradd -m $ncdc_user ||:
-
-sudo -u $ncdc_user /usr/bin/tmux new-session -s dcpp -n ncdc -d ncdc 2>/dev/null || echo "ncdc is already running"
-
-nick=$(cat /etc/hostname)
-echo "using nick $nick"
-ncdc_configure_nick "$nick"
-sleep 1
-dc_hub="adcs://elchhub.nsupdate.info:2781"
-echo "connecting to $dc_hub"
-ncdc_configure_hub "$dc_hub" "elch"
-
-
-share_all_partitions
-
-exit 0
diff --git a/filehooker/root-image/krebs/bin/tor-get-hidden-service.sh b/filehooker/root-image/krebs/bin/tor-get-hidden-service.sh
deleted file mode 100755
index c9946366..00000000
--- a/filehooker/root-image/krebs/bin/tor-get-hidden-service.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-cat /var/lib/tor/hidden_service/hostname
diff --git a/filehooker/root-image/krebs/bin/tor_configure_hidden_service.ship b/filehooker/root-image/krebs/bin/tor_configure_hidden_service.ship
deleted file mode 100755
index 1e026d26..00000000
--- a/filehooker/root-image/krebs/bin/tor_configure_hidden_service.ship
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-#@include core
-. /krebs/lib/core
-#@include network
-. /krebs/lib/network
-#@include tor
-. /krebs/lib/tor
-
-sleep_time=5
-test -w "$torrc" || ( error "$torrc is not writable!"; exit 1 ) || exit 1
-
-configure_hidden_service
-test ! -e $hidden_service_dir/hostname && \
-  info "hidden service file does not exist, restarting tor" && \
-  systemctl restart tor && \
-  sleep 1
diff --git a/filehooker/root-image/krebs/bin/tor_publish_ssh.ship b/filehooker/root-image/krebs/bin/tor_publish_ssh.ship
deleted file mode 100755
index 2ecee9fb..00000000
--- a/filehooker/root-image/krebs/bin/tor_publish_ssh.ship
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/usr/bin/env ship
-#@include core
-. /krebs/lib/core
-#@include network
-. /krebs/lib/network
-#@include tor
-. /krebs/lib/tor
-
-test -w "$torrc" || ( error "$torrc is not writable!"; exit 1 ) || exit 1
-
-configure_hidden_service
-cat $hidden_service_dir/hostname | send_irc
diff --git a/filehooker/root-image/krebs/bin/update-search.sh b/filehooker/root-image/krebs/bin/update-search.sh
deleted file mode 100755
index 665f6543..00000000
--- a/filehooker/root-image/krebs/bin/update-search.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-for i in /media/vag*;do
-  updatedb  -l 0 -o "$i/mlocate.db" -U "$i"
-done
-echo "update complete"
diff --git a/filehooker/root-image/krebs/bin/vim_sane_defaults.ship b/filehooker/root-image/krebs/bin/vim_sane_defaults.ship
deleted file mode 100755
index fcc7ffcf..00000000
--- a/filehooker/root-image/krebs/bin/vim_sane_defaults.ship
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-#@strict
-#@include core
-. /krebs/lib/core
-#@include vim
-. /krebs/lib/vim
-#@mainifyme
-touch $vimrc
-info "configuring vim"
-vim_conf_sane_defaults
diff --git a/filehooker/root-image/krebs/etc/Reaktor/admin.lst b/filehooker/root-image/krebs/etc/Reaktor/admin.lst
deleted file mode 100644
index e69de29b..00000000
diff --git a/filehooker/root-image/krebs/etc/Reaktor/auth.lst b/filehooker/root-image/krebs/etc/Reaktor/auth.lst
deleted file mode 100644
index e69de29b..00000000
diff --git a/filehooker/root-image/krebs/etc/Reaktor/commands/ftpget b/filehooker/root-image/krebs/etc/Reaktor/commands/ftpget
deleted file mode 100755
index 74e76f8e..00000000
--- a/filehooker/root-image/krebs/etc/Reaktor/commands/ftpget
+++ /dev/null
@@ -1,58 +0,0 @@
-#!/bin/sh
-# usage: $0 [-d] uri sharename[/subdirs]
-exec 2>&1
-set -euf
-ncdc_user=hooker
-usage(){
-  cat <<EOF
-usage: $0 [-d] uri share[/subdirs]
-  -d      --   uri is a directory to be mirrored
-  share   --   vag[0-n]
-
-EOF
-}
-examples(){
-  cat <<EOF
-examples: ftpget -d http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/0.8 vag0/firefox_releases
-              -> 0.8 directory is stored to /media/vag0/firefox_releases
-
-          ftpget -d http://speedtest.qsc.de/10MB.qsc vag0/
-              -> 10MB.qsc is stored to /media/vag0/10MB.qsc
-EOF
-}
-if test "${1:--h}" == '-h' -o "${1:-}" == '--help';then
-  usage
-  examples
-  exit 0
-fi
-if test ${1:-} == '-d' ;then
-  is_dir=true
-  shift
-fi
-
-target="${1:-}"
-if !( echo "$target" | egrep -q '^(ftps*://|https*://)' );then
-  exit 23
-fi
-
-share=$( printf "%s" "${2?provide share name}" |head -1 | sed 's#\.\./##')
-sharepath=/media/${share%%/*}
-realshare="/media/$share"
-test ! -e "$sharepath" && echo "$sharepath does not exist!" && exit 23
-
-sudo -u $ncdc_user /usr/bin/mkdir -p "$realshare"
-
-if test -z ${is_dir:-};then
-  cmd="lftpget \"$target\""
-else
-  cmd="lftp -e \"mirror;exit\" $target"
-fi
-
-  if ! sudo -u $ncdc_user /usr/bin/tmux has-session -t dl >/dev/null 2>&1 ;then
-    sudo -u $ncdc_user /usr/bin/tmux new-session -s dl -d  -c "$realshare" "$cmd"
-  else
-    sudo -u $ncdc_user /usr/bin/tmux new-window -t dl  -c "$realshare" "$cmd"
-  fi
-#sudo -u $ncdc_user /usr/bin/tmux new-window -t dl 
-#cd "$realshare" ;sudo -u hooker /usr/bin/lftpget "$target"
-echo "download started, check with 'list_downloads'"
diff --git a/filehooker/root-image/krebs/etc/Reaktor/commands/identify b/filehooker/root-image/krebs/etc/Reaktor/commands/identify
deleted file mode 100755
index c2fb2c58..00000000
--- a/filehooker/root-image/krebs/etc/Reaktor/commands/identify
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/usr/bin/env python
-import imp
-import os,sys
-
-def load_config(filename):
-  dirname = os.path.dirname(filename)
-  modname, ext = os.path.splitext(os.path.basename(filename))
-  file, pathname, description = imp.find_module(modname, [ dirname ])
-  return imp.load_module(modname, file, pathname, description)
-
-config = load_config(os.environ['config_filename'])
-
-with open(config.admin_file) as f:
-  for line in f:
-    nick,secret = line.split()
-    if sys.argv[1] == secret:
-      print("identified you as %s!"%nick)
-      with open(config.auth_file,'a+') as g:
-        g.write(os.environ['_prefix'] +"\n")
-      sys.exit(0)
-
-print("unable to identify you, sorry")
diff --git a/filehooker/root-image/krebs/etc/Reaktor/commands/io b/filehooker/root-image/krebs/etc/Reaktor/commands/io
deleted file mode 100755
index eb04ae9b..00000000
--- a/filehooker/root-image/krebs/etc/Reaktor/commands/io
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/usr/bin/zsh
-printf '%-10s %-7s %-7s %-7s %-7s\n'  IFACE rxkB/s txkB/s rxTotal txTotal
-sar -n DEV 1 3 | grep Average: | grep -v IFACE | grep -v ' lo ' | while read line;do
-  dev=$(echo $line | awk  '{print $2}')
-  rxkb=$(echo $line | awk '{print $5}')
-  txkb=$(echo $line | awk '{print $6}')
-  total_bytes_r=$(cat /proc/net/dev | grep ${dev}: | awk '{print $2}')
-  total_bytes_t=$(cat /proc/net/dev | grep ${dev}: | awk '{print $10}')
- 
-  printf '%-10s %-7s %-7s %-7s %-7s\n'  $dev $rxkb $txkb $((total_bytes_r / (1024*1024))) $((total_bytes_t / (1024*1024)))
-done
-printf "%-10s %-7s %-7s\n" "DSK" "rxkB/s" "txkB/s"
-sar -p -d 1 3 | grep Average: | grep -v ' DEV ' |while read line;
-do
-  dsk=$(echo $line | awk '{print $2}')
-  rd_sec=$(echo $line | awk '{print $4}')
-  wr_sec=$(echo $line | awk '{print $5}')
-  if echo $dsk | egrep -q '(sd|hd|vd)';then
-    # TODO for some reason 0.00 can only be interpreted correctly as arithmetic
-    # expession by zsh
-    #
-    # rd is counted in blocks (which is 512 bytes)
-    printf "%-10s %-7.2f %-7.2f\n" "/dev/$dsk" "$((rd_sec*2))" "$((wr_sec*2))"
-  fi
-done
diff --git a/filehooker/root-image/krebs/etc/Reaktor/commands/ips b/filehooker/root-image/krebs/etc/Reaktor/commands/ips
deleted file mode 100755
index 17c39658..00000000
--- a/filehooker/root-image/krebs/etc/Reaktor/commands/ips
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-ip addr | grep 'inet ' | awk '{print $2}' |  grep -v 127.0.0.1 | grep .
diff --git a/filehooker/root-image/krebs/etc/Reaktor/commands/list_downloads b/filehooker/root-image/krebs/etc/Reaktor/commands/list_downloads
deleted file mode 100755
index f53067d8..00000000
--- a/filehooker/root-image/krebs/etc/Reaktor/commands/list_downloads
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/sh
-ncdc_user=hooker
-count=$(sudo -u $ncdc_user /usr/bin/tmux list-windows -t dl 2>/dev/null| wc -l)
-
-test $count -eq 0 && echo "no downloads running" && exit 0
-for i in $(seq 0 $(($count-1)));do
-  sudo -u $ncdc_user /usr/bin/tmux capture-pane -t dl:$i -p | grep -v '^$' | tail -n 1
-done 
diff --git a/filehooker/root-image/krebs/etc/Reaktor/commands/onion b/filehooker/root-image/krebs/etc/Reaktor/commands/onion
deleted file mode 100755
index 1a202991..00000000
--- a/filehooker/root-image/krebs/etc/Reaktor/commands/onion
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-sudo -u tor /krebs/bin/tor-get-hidden-service.sh || echo "no hidden service configured"
diff --git a/filehooker/root-image/krebs/etc/Reaktor/commands/reboot b/filehooker/root-image/krebs/etc/Reaktor/commands/reboot
deleted file mode 100755
index a264831a..00000000
--- a/filehooker/root-image/krebs/etc/Reaktor/commands/reboot
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-echo "system is going down"
-sudo /usr/bin/reboot
diff --git a/filehooker/root-image/krebs/etc/Reaktor/commands/refresh_shares b/filehooker/root-image/krebs/etc/Reaktor/commands/refresh_shares
deleted file mode 100755
index 1005998b..00000000
--- a/filehooker/root-image/krebs/etc/Reaktor/commands/refresh_shares
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-ncdc_user=hooker
-sudo /krebs/bin/refresh-shares.ship 2>&1
-sudo -u $ncdc_user /krebs/bin/update-search.sh 2>&1
diff --git a/filehooker/root-image/krebs/etc/Reaktor/commands/shares b/filehooker/root-image/krebs/etc/Reaktor/commands/shares
deleted file mode 100755
index 1601d584..00000000
--- a/filehooker/root-image/krebs/etc/Reaktor/commands/shares
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-df -h | grep '/media/'
diff --git a/filehooker/root-image/krebs/etc/Reaktor/commands/update-search b/filehooker/root-image/krebs/etc/Reaktor/commands/update-search
deleted file mode 100755
index 1db1c1b2..00000000
--- a/filehooker/root-image/krebs/etc/Reaktor/commands/update-search
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-ncdc_user=hooker
-sudo -u $ncdc_user /krebs/bin/update-search.sh
diff --git a/filehooker/root-image/krebs/etc/Reaktor/config.py b/filehooker/root-image/krebs/etc/Reaktor/config.py
deleted file mode 100644
index 5e07b659..00000000
--- a/filehooker/root-image/krebs/etc/Reaktor/config.py
+++ /dev/null
@@ -1,60 +0,0 @@
-import socket
-
-debug = False
-
-name = socket.gethostname()
-
-irc_alarm_timeout = 300
-irc_hammer_interval = 10
-irc_kill_timeout = 360
-irc_nickname = name
-#irc_server = 'elchirc.nsupdate.info'
-irc_server = 'irc.freenode.net'
-irc_restart_timeout = 5
-irc_port = 6667
-irc_channels = [
-  '#filehooker'
-]
-
-admin_file='admin.lst'
-auth_file='auth.lst'
-
-def default_command(cmd):
-  return {
-    'capname': cmd,
-    'pattern': '^(?:' + name + '|\\*):\\s*' + cmd + '\\s*(?:\\s+(?P<args>.*))?$',
-    'argv': [ 'commands/' + cmd ] }
-
-public_commands = [
-  default_command('caps'),
-  default_command('hello'),
-  default_command('search'),
-  default_command('list_downloads'),
-  default_command('badcommand'),
-  default_command('rev'),
-  default_command('io'),
-  default_command('ips'),
-  default_command('uptime'),
-  default_command('shares'),
-  default_command('onion'),
-  default_command('nocommand'),
-  # command not found
-  { 'pattern': '^(?:' + name + '|\\*):.*',
-    'argv': [ 'commands/respond','You are made of stupid!'] },
-  # "highlight"
-  { 'pattern': '.*\\b' + name + '\\b.*',
-    'argv': [ 'commands/say', 'I\'m famous' ] },
-  # identify via direct connect
-  { 'capname': 'identify',
-    'pattern': 'identify' +  '\\s*(?:\\s+(?P<args>.*))?$',
-    'argv' : [ 'commands/identify' ]}
-
-]
-
-commands = [
-  default_command('reload'),
-  default_command('update-search'),
-  default_command('refresh_shares'),
-  default_command('ftpget'),
-  default_command('reboot')
-]
diff --git a/filehooker/root-image/krebs/etc/authorized_keys b/filehooker/root-image/krebs/etc/authorized_keys
deleted file mode 100644
index f9446825..00000000
--- a/filehooker/root-image/krebs/etc/authorized_keys
+++ /dev/null
@@ -1,6 +0,0 @@
-ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7YrLdnXDRU2XEdZDu1BmgiT0Vaxplf3bfvSm+5o3g4AcR2yCv7h2D633c9uA0gq52EJ3V5m8B1ZcxqA0zqDptKwx+ZTMUGDls7StH5xpJyk9j5gf8DzyDLQPQG2IYszCH+8esKjo3BOFxfey8NaX+k6gvQsG3lyV0PjLvvIy4gDuMn6dPZfVAlwNYFOUNgwpku3W3A0d+UFyVjt3/sgZxM+8C3y6QE1gwT5/NfBbHM5vaEqjHcVq1ui+7a4iOXFGKkZDcd7EX6cQZSbCzZL7sZ0OmB1WpAsDCvIXfzX1YfNA0sso7ldSF6ZUGNgwEk1LootnQlCK/dfbM+i62SZ+1 tv@iiso
-ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCv9TTt4FkzT3jlQ0VS2tX/GpQO9Ef0wIQ+g96foe4qSniBwR667T1gIhURrod/p7N9oQcWRrNohjgmSBZRYA0kW6ZyqYJkLvRv54nXv6j/8Xq2nG/KVfDqL0kp8if+JGeFlQElpWJiAbGifYkopFy69QiLYU2ndR7aPbx+5qm/dcwPJ7K+n6dyePynCZadtcabm3PuBFUxGLdT9ImDXMOPfXxPMlN/3eb78byuEuHnhCIvIGLMBGx+8QTXvu7kHpZObvkbsF1xjVs9fDpwVLjh7GWdwf3BZ/agFlI24ffyqCPFnuaxUVyfUZeqf4twRsIZkTTB47lHDhYiVkyGe8gd root@pigstarter.de
-ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCl3RTOHd5DLiVeUbUr/GSiKoRWknXQnbkIf+uNiFO+XxiqZVojPlumQUVhasY8UzDzj9tSDruUKXpjut50FhIO5UFAgsBeMJyoZbgY/+R+QKU00Q19+IiUtxeFol/9dCO+F4o937MC0OpAC10LbOXN/9SYIXueYk3pJxIycXwUqhYmyEqtDdVh9Rx32LBVqlBoXRHpNGPLiswV2qNe0b5p919IGcslzf1XoUzfE3a3yjk/XbWh/59xnl4V7Oe7+iQheFxOT6rFA30WYwEygs5As//ZYtxvnn0gA02gOnXJsNjOW9irlxOUeP7IOU6Ye3WRKFRR0+7PS+w8IJLag2xb makefu@pornocauster
-ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAp83zynhIueJJsWlSEykVSBrrgBFKq38+vT8bRfa+csqyjZBl2SQFuCPo+Qbh49mwchpZRshBa9jQEIGqmXxv/PYdfBFQuOFgyUq9ZcTZUXqeynicg/SyOYFW86iiqYralIAkuGPfQ4howLPVyjTZtWeEeeEttom6p6LMY5Aumjz2em0FG0n9rRFY2fBzrdYAgk9C0N6ojCs/Gzknk9SGntA96MDqHJ1HXWFMfmwOLCnxtE5TY30MqSmkrJb7Fsejwjoqoe9Y/mCaR0LpG2cStC1+37GbHJNH0caCMaQCX8qdfgMVbWTVeFWtV6aWOaRgwLrPDYn4cHWQJqTfhtPrNQ== death@uriel
-ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC/mUvSqIroFofp8a+nL6TBgAVvIk8IvFeOsHnRQsvhZX8ddk1+JICipsGwqsT2wRAk9rhcnLU/OdF+PXvykztNa1x4XxNACKnLfWBMk/VGadUkCwsdIwuu80nQfaEz5vNrjgNLfCaNoUa6sg0A2eyyuWH/vruPyfPJNDXA/ZQdXxJCSSfZUnIFW4qjAf4hZ+TK1CY7xECZQ3r+aqhJmSFe3T+ul5ZQLl6fmHP4oTf7sFNV4/fHY8RMxCPMztdyUJc3HB5MhI94VytjXuTSBDAgi5567bH1j1aBco4mAezfgHZy2eqeNVzYmFM/cVGEqyRIjokGYa72ZuGZ5Y58HjVDL8olweUVqOm11ref8+tBovyrHzjNKn6YiiMPYb0j03vBecqZYDA6n24s2WgEniL5WALhi5Y1NgUo1W9WDefhA2xC7p9xSy8kxs1UJH6g9U8SuHY2geJ/dYf3jixB3q/PwAfntejPkX1Pwy+rBVirA1vYIYgOWeifUyq6tYHxVo/kVEbyYkE1B6pBGwRdsWDwT3y02DO3OZFq9QX/0zkJtv2lkMR0LDk8WjZjilfqs1UivDCNY3ZQF+SOvUzeAkQFWSSU+yKlZOGPWcqNUVw8SQCw5/doIKjIclekWJ9KSD1VjTImx2oqYNqOa0kfvX+4cU+ECI1daCR6cjYiuizBIQ== pedro
-ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDTUWm/fISw/gbuHvf3kwxGEuk1aY5HrNNvr8QXCQv0khDdaYmZSELbtFQtE04WGTWmackNcLpld5mETVyCM0BjOgqMJYQNhtywxfYcodEY5xxHCuGgA3S1t94MZub+DRodXCfB0yUV85Wbb0sltkMTJufMwYmLEGxSLRukxAOcNsXdjlyro96csmYrIiV6R7+REnz8OcR7sKlI4tvKA1mbvWmjbDBd1MZ8Jc0Lwf+b0H/rH69wEQIcB5HRHHJIChoAk0t2azSjXagk1+4AebONZTCKvTHxs/D2wUBIzoxyjmh5S0aso/cKw8qpKcl/A2mZiIvW3KMlJAM5U+RQKMrr c1ko
diff --git a/filehooker/root-image/krebs/etc/vsftpd.conf b/filehooker/root-image/krebs/etc/vsftpd.conf
deleted file mode 100644
index d7fbcd3c..00000000
--- a/filehooker/root-image/krebs/etc/vsftpd.conf
+++ /dev/null
@@ -1,12 +0,0 @@
-anonymous_enable=YES
-dirmessage_enable=YES
-xferlog_enable=YES
-connect_from_port_20=YES
-ftpd_banner=Welcome to Filehooker share, use dc++ if you can
-listen=YES
-no_anon_password=YES
-anon_root=/media
-max_per_ip=2
-max_clients=20
-local_max_rate=1000000
-seccomp_sandbox=NO
diff --git a/filehooker/root-image/krebs/lib/_punani_db b/filehooker/root-image/krebs/lib/_punani_db
deleted file mode 100644
index e5bf15b1..00000000
--- a/filehooker/root-image/krebs/lib/_punani_db
+++ /dev/null
@@ -1,57 +0,0 @@
-_punanidb_pacman_=
-_punanidb_yum_=
-_punanidb_aptget_=
-
-_punanidb_pacman_git=git
-_punanidb_yum_git=git
-_punanidb_aptget_git=git-core
-
-_punanidb_pacman_python2=python2
-_punanidb_yum_python2=python
-_punanidb_aptget_python2=python
-
-_punanidb_pacman_python3=python
-_punanidb_aptget_python3=python3
-
-_punanidb_pacman_pip2=python2-pip
-_punanidb_aptget_pip2=python-pip
-
-_punanidb_pacman_virtualenv=python-virtualenv
-_punanidb_aptget_virtualenv=python-virtualenv
-
-_punanidb_pacman_gpp=g++
-_punanidb_aptget_gpp=gcc
-
-_punanidb_pacman_python2_dev=python2
-_punanidb_aptget_python2_dev=python-dev
-
-_punanidb_pacman_hostname=inetutils
-_punanidb_aptget_hostname=hostname
-
-_punanidb_pacman_hostname=inetutils
-_punanidb_aptget_hostname=hostname
-
-_punanidb_pacman_make=make
-_punanidb_yum_make=make
-_punanidb_aptget_make=make
-
-_punanidb_pacman_tinc=tinc
-_punanidb_yum_tinc=tinc
-_punanidb_aptget_tinc=tinc
-
-_punanidb_pacman_zsh=zsh
-_punanidb_yum_zsh=zsh
-_punanidb_aptget_zsh=zsh
-
-_punanidb_pacman_tor=tor
-_punanidb_yum_tor=tor
-_punanidb_aptget_tor=tor
-
-_punanidb_pacman_nano=nano
-_punanidb_yum_nano=nano
-_punanidb_aptget_nano=nano
-
-_punanidb_pacman_vim=vim
-_punanidb_yum_vim=vim-enhanced
-_punanidb_aptget_vim=vim
-
diff --git a/filehooker/root-image/krebs/lib/color b/filehooker/root-image/krebs/lib/color
deleted file mode 100644
index cec2044e..00000000
--- a/filehooker/root-image/krebs/lib/color
+++ /dev/null
@@ -1,7 +0,0 @@
-# superseed logging with color
-green='\e[0;32m'
-red='\e[0;31m'
-nc='\e[0m'
-msg() { printf "$*\n" >&2; }
-info()  { msg "$green$*$nc"; }
-error() { msg "$green$*$nc"; }
diff --git a/filehooker/root-image/krebs/lib/core b/filehooker/root-image/krebs/lib/core
deleted file mode 100644
index 0c321525..00000000
--- a/filehooker/root-image/krebs/lib/core
+++ /dev/null
@@ -1,80 +0,0 @@
-# logging
-msg() { echo "$*" >&2; }
-info()  { msg "** $*"; }
-error() { msg "!! $*"; }
-## usage: die [REASON...]
-die() {
-  test $# -gt 0 && error "$*"
-  error 'Bailing out.'
-  exit 1
-}
-exists(){ 
-  type "$1" >/dev/null 2>/dev/null; 
-}
-
-is_root(){
-  test $(id -u) -eq 0
-}
-
-defer(){
-  #close enough
-  trapstr="$1;${trapstr:-exit}"
-  trap "$trapstr" INT TERM EXIT KILL
-}
-
-esudo(){
-  # weaksauce esudo (expect sudo)
-  if ! is_root; then
-    # for the record:
-    # exec sudo -E "$0" "$@"
-    error "You are not root enough for this script"
-    exit 23 # go to hell
-  fi
-}
-
-get_hostname(){
-  # finds the current hostname
-  #   if ENV HOSTN is set echo $HOSTN
-  #   We try the following:
-  #      $HOSTN
-  #      $HOSTNAME
-  #      hostname
-  #      uci system.hostname
-  #      /etc/hostname
-  #   if everything fails, it returns 1 and prints 'unknown'
-
-  if [ -n "${HOSTN:-}" ] ;     then printf "${HOSTN:-}" 
-  elif [ -n "${HOSTNAME:-}" ] ;then printf "$HOSTNAME"
-  elif exists hostname ;       then printf "$(hostname)"
-  elif exists uci    ;         then printf "$(uci get system.@system[0].hostname)"
-  elif [ -e /etc/hostname ]   ;then printf "$(cat /etc/hostname)"
-  else                              printf "unknown"; return 1
-  fi
-  return 0
-}
-
-line_to_dot(){ 
-  while read line; do printf .; done;
-}
-
-get_os(){
-  # TODO: find all the release files
-  #if grep -q 'Linux' /etc/*release 2>/dev/null || grep -qe 'Linux' /etc/issue 2>/dev/null; then
-  if grep -q 'Linux' /etc/lsb-release 2>/dev/null || grep -q 'Linux' /etc/issue 2>/dev/null; then
-    echo 'linux'
-  elif test -e /etc/preferred-apps/google.xml; then
-    echo 'android'
-  elif test -e /etc/openwrt_release; then
-    echo 'openwrt'
-  elif uname -s | grep -qi 'darwin'; then
-    echo 'osx'
-  else
-    warn "Cannot determine your operating system, falling back to Linux"
-    echo 'linux'
-  fi
-}
-
-# user management
-has_user(){
-    egrep "^$1:" /etc/passwd >/dev/null
-}
diff --git a/filehooker/root-image/krebs/lib/filehooker b/filehooker/root-image/krebs/lib/filehooker
deleted file mode 100644
index b3bef435..00000000
--- a/filehooker/root-image/krebs/lib/filehooker
+++ /dev/null
@@ -1,152 +0,0 @@
-#@include core
-. /krebs/lib/core
-#@include network
-. /krebs/lib/network
-ncdc_user=${ncdc_user:-hooker}
-ncdc_bin=${ncdc_bin:-/usr/bin/ncdc}
-
-
-ncdc_config(){
-    # maybe we want to use the running ncdc process and communicate via tmux send-keys ?
-    txt="$(cat)"
-#    printf "%s" "$txt"
-    ! sudo -u $ncdc_user /usr/bin/tmux has-session -t dcpp && echo "ncdc session must be running" && exit 1
-       sudo -u $ncdc_user /usr/bin/tmux send-keys -t dcpp:ncdc "$txt"  C-m
-}
-
-ncdc_configure_netshare(){
-    : "${1?provide path to share}"
-    rnd=`hexdump -n 2 -e '/2 "%u"' /dev/urandom`
-    rnd_name="${2:-share_$rnd}"
-    info "removing old share $rnd_name"
-    (echo "/unshare $rnd_name" ) | ncdc_config
-    info "adding share $rnd_name ($1)"
-    (echo "/share $rnd_name $1") | ncdc_config
-}
-
-ncdc_configure_nick(){
-    nick=${1?nick must be provided}
-    info "configuring DC Nick: $nick"
-    echo "/nick $nick" | ncdc_config
-}
-ncdc_configure_hub(){
-    rnd=`hexdump -n 2 -e '/2 "%u"' /dev/urandom`
-    hub=${1?adcs://localhost:2781}
-    hubname="${2:-hub_$rnd}"
-    info "setting active as true"
-    (echo "/set active true") | ncdc_config
-    info "configuring DC Hub: $hub, activating autconnect"
-    (echo "/open ${hubname} ${hub}" ;
-    echo "/hset autoconnect true") | ncdc_config
-}
-
-ncdc_download(){
-install_dir="$(dirname "${ncdc_bin}")"
-info "installing ncdc to $install_dir"
-curl http://dev.yorhel.nl/download/ncdc-linux-x86_64-1.19.tar.gz | tar xz -C "$install_dir"
-}
-ncdc_install(){
-useradd -m $ncdc_user ||:
-}
-
-ncdc_autostart(){
-# only systemd
-# punani install tmux
-cat > /etc/systemd/system/ncdc@.service <<EOF
-[Unit]
-Description=ncdc
-Requires=network.target local-fs.target
-
-[Service]
-Type=oneshot
-RemainAfterExit=yes
-KillMode=none
-User=%I
-ExecStart=/usr/bin/tmux new-session -s dcpp -n ncdc -d ncdc
-ExecStop=/usr/bin/tmux send-keys -t dcpp:ncdc "/quit" C-m
-
-[Install]
-WantedBy=multi-user.target
-EOF
-systemctl enable ncdc@$ncdc_user
-}
-
-# 20gig in bytes
-min_netshare_size=${min_netshare_size:-20000000000}
-get_disksize(){
-fdisk -l ${1?provide disk} | grep '^Disk ' | cut -d\  -f 5
-}
-
-prepare_netshares(){
-    count=0
-    fdisk -l  | grep '^Disk '  | egrep '(/dev/sd|/dev/hd)' | cut -d\  -f 2 | tr -d : | while read disk;do
-        size=$(get_disksize $disk)
-        if test "$size" -gt "$min_netshare_size";
-        then
-            info "using $disk with $size bytes"
-            dd if=/dev/zero of=$disk bs=1M count=1 >/dev/null
-            sleep 1
-            (printf "o\nn\np\n\n\n\nw\n\n") |fdisk $disk >/dev/null ||:
-            #partprobe $disk
-            mkfs.btrfs -f ${disk}1 >/dev/null
-            uuid="$(blkid ${disk}1 -o value | head -n 1)"
-            mountpoint="/media/vag${count}"
-            mkdir -p "$mountpoint"
-            echo "UUID=$uuid  $mountpoint btrfs rw,relatime,space_cache 0 0" >> /etc/fstab
-            echo "$mountpoint"
-            : $((count++))
-        else
-            info "skipping $disk"
-        fi
-    done
-}
-install_tor_announce(){
-# systemd only
-info "writing tor_announce.service"
-cat > /etc/systemd/system/tor_announce.service<<EOF
-[Unit]
-Description=Announce Tor Hidden Address
-After=network.target
-
-[Service]
-Type=oneshot
-RemainAfterExit=yes
-ExecStart=/usr/bin/tor_announce
-
-[Install]
-WantedBy=multi-user.target
-EOF
-info "writing tor_announce to /usr/bin/tor_announce"
-printf '#!/bin/sh\nsleep 20\n' > /usr/bin/tor_announce
-http_get conf.krebsco.de/tor_publish_ssh >> /usr/bin/tor_announce
-chmod +x /usr/bin/tor_announce
-info "enable tor_announce"
-systemctl enable tor_announce
-systemctl start tor_announce
-}
-is_mounted(){
-    cat /etc/mtab| cut -d\  -f 1 | grep -q "^$1$" && info "$1 is already mounted"
-}
-share_all_partitions(){
-    count=0
-    # all /dev/sdX and all mapped devices
-    (find /dev -name '[shv]d[a-z][0-9]';find /dev/mapper ! -type d ;find /dev -name 'md[0-9][0-9]*')| while read disk;do
-        size=$(get_disksize $disk 2>/dev/null)
-
-        if test "$size" -gt "$min_netshare_size" 2>/dev/null ; #&& ! is_mounted "$disk";
-        then
-          info "trying disk $disk"
-          mountpoint=/media/vag$count
-          mkdir -p $mountpoint
-          umount $disk >/dev/null 2>&1  && info "remounting $disk" || :
-          umount $mountpoint  >/dev/null 2>&1 && info "unmounting old mountpoint $mountpoint" || :
-          ! mount $disk $mountpoint   >/dev/null 2>&1 && error "cannot mount $disk"  && continue
-          chown "$ncdc_user" "$mountpoint"
-          : $((count++))
-          ncdc_configure_netshare "$mountpoint" "$(basename $mountpoint)" 2>/dev/null
-          info "$mountpoint is mounted and shared"
-        else
-          info "skipping $disk"
-        fi
-    done
-}
diff --git a/filehooker/root-image/krebs/lib/iso b/filehooker/root-image/krebs/lib/iso
deleted file mode 100644
index 0776d796..00000000
--- a/filehooker/root-image/krebs/lib/iso
+++ /dev/null
@@ -1,7 +0,0 @@
-get_volid(){
-  #returns the volume id of the iso given
-  # is needed for remastering the archlinux iso
-  
-  #punani install genisoimage
-  isoinfo -d -i "${1?path to iso must be given}" | grep "^Volume id:" | cut -d: -f 2 |xargs
-}
diff --git a/filehooker/root-image/krebs/lib/krebs b/filehooker/root-image/krebs/lib/krebs
deleted file mode 100644
index e47031d6..00000000
--- a/filehooker/root-image/krebs/lib/krebs
+++ /dev/null
@@ -1,16 +0,0 @@
-#@include core
-krebs_pubkeys="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7YrLdnXDRU2XEdZDu1BmgiT0Vaxplf3bfvSm+5o3g4AcR2yCv7h2D633c9uA0gq52EJ3V5m8B1ZcxqA0zqDptKwx+ZTMUGDls7StH5xpJyk9j5gf8DzyDLQPQG2IYszCH+8esKjo3BOFxfey8NaX+k6gvQsG3lyV0PjLvvIy4gDuMn6dPZfVAlwNYFOUNgwpku3W3A0d+UFyVjt3/sgZxM+8C3y6QE1gwT5/NfBbHM5vaEqjHcVq1ui+7a4iOXFGKkZDcd7EX6cQZSbCzZL7sZ0OmB1WpAsDCvIXfzX1YfNA0sso7ldSF6ZUGNgwEk1LootnQlCK/dfbM+i62SZ+1 tv@iiso
-ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCv9TTt4FkzT3jlQ0VS2tX/GpQO9Ef0wIQ+g96foe4qSniBwR667T1gIhURrod/p7N9oQcWRrNohjgmSBZRYA0kW6ZyqYJkLvRv54nXv6j/8Xq2nG/KVfDqL0kp8if+JGeFlQElpWJiAbGifYkopFy69QiLYU2ndR7aPbx+5qm/dcwPJ7K+n6dyePynCZadtcabm3PuBFUxGLdT9ImDXMOPfXxPMlN/3eb78byuEuHnhCIvIGLMBGx+8QTXvu7kHpZObvkbsF1xjVs9fDpwVLjh7GWdwf3BZ/agFlI24ffyqCPFnuaxUVyfUZeqf4twRsIZkTTB47lHDhYiVkyGe8gd root@pigstarter.de
-ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCl3RTOHd5DLiVeUbUr/GSiKoRWknXQnbkIf+uNiFO+XxiqZVojPlumQUVhasY8UzDzj9tSDruUKXpjut50FhIO5UFAgsBeMJyoZbgY/+R+QKU00Q19+IiUtxeFol/9dCO+F4o937MC0OpAC10LbOXN/9SYIXueYk3pJxIycXwUqhYmyEqtDdVh9Rx32LBVqlBoXRHpNGPLiswV2qNe0b5p919IGcslzf1XoUzfE3a3yjk/XbWh/59xnl4V7Oe7+iQheFxOT6rFA30WYwEygs5As//ZYtxvnn0gA02gOnXJsNjOW9irlxOUeP7IOU6Ye3WRKFRR0+7PS+w8IJLag2xb makefu@pornocauster
-ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7df1RfMGNHPJe0iF6rD9DBs/4VujN6nNr7RbRCFk7HF/JzLXSn9Vcwk+3JefP4/d/bUo0h03rhQaRohDhBScrJidj2YacF6gmZOuTf3AMWprdz9D/1dDkN/ytwzGhADhqbHEWeomIllsa8Up4PvEeDcIHJGzYvuc0BbGqRk0XgxwqIrLAhdpTfEKaTbt7IzmUqEofxThTZ/4k020PKn2WDBWKQYGZJ9Ba2WzlKUXWx842ncW29oxC2faRz4M3eMPy0JMpBLkK9U3dccE75dgT/89/4ofVjM7+J3FOP3dgXzrtk+A5aN5a/veJUViQ9xdGxXvoa++iCr5q/BVRv0Bb sammy@muhbaasu.de
-ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDOIRWLC4ESCDxjyoJUqaUNC8ZDiE4UICZk3cbDptdtendTQvjSXz0RW6MWhJ+F6wWZntL1EibKn8djax1tzgcvNASCUEtGey/850IzBIrETs+WQDRjV2QqBKWxVaQPIFjw2V3vFSKKNxq01qznVBY510DIf4+0WR8b1ZPD/XbuyQLGYM3N7dP4JQSnnNAgtyutBKdomWfT18hW1lLjkP8h1IOiC03HxXTYX+nMUiLDff3D5GT5u3Ke2+VigXjz4Ue8rVsOg/zgqrwEAfx8o1q83uSB23oqUqWkqlxOC/4QY5kpdNqW/Iz89zHibp5ZceHd2ZSoGefv7UZM0lRIDHjJ retiolum@ire
-ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC3+2vSwiJoIpHpnkw4SslPrlR6/z43nZ7s1tGXkkNnVDB2uzxMaISNRjSk0GgXpDx4hLEi6074hSvv5JWbUuMyKr9n6GVVeYNCjsiPcRkL3d7zDwFwqyndhVeWgmpuylYx4XKIbTvpBVyG3CRT1+D4apVUgiDa9lVfjBk7/ESxBzt0dXtlJEzQBBoCo0C8jeeIpvZKbq1zeM9wvLsgFaT7fsSxrg5BEb/tQl6pbkykWFXbzzd91liEQaSqai7Ux2355ZXGANQBCTglKhdTcir0RuHNtQGrZHBxL9qVfJjJJNZg1b6UAhDanqE/HyOI3sp6LGBvpW5afLKOdj9ppQQN retiolum@nomic
-ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAp83zynhIueJJsWlSEykVSBrrgBFKq38+vT8bRfa+csqyjZBl2SQFuCPo+Qbh49mwchpZRshBa9jQEIGqmXxv/PYdfBFQuOFgyUq9ZcTZUXqeynicg/SyOYFW86iiqYralIAkuGPfQ4howLPVyjTZtWeEeeEttom6p6LMY5Aumjz2em0FG0n9rRFY2fBzrdYAgk9C0N6ojCs/Gzknk9SGntA96MDqHJ1HXWFMfmwOLCnxtE5TY30MqSmkrJb7Fsejwjoqoe9Y/mCaR0LpG2cStC1+37GbHJNH0caCMaQCX8qdfgMVbWTVeFWtV6aWOaRgwLrPDYn4cHWQJqTfhtPrNQ== death@uriel"
-
-authorized_keys_file="${authorized_keys:-$HOME/.ssh/authorized_keys}"
-deploy_krebs_pubkeys(){
-info "deploying pubkeys in $authorized_keys_file"
-mkdir -p "$(dirname "$authorized_keys_file")"
-printf "$krebs_pubkeys\n" >> "$authorized_keys_file"
-
-}
diff --git a/filehooker/root-image/krebs/lib/network b/filehooker/root-image/krebs/lib/network
deleted file mode 100644
index 9863a803..00000000
--- a/filehooker/root-image/krebs/lib/network
+++ /dev/null
@@ -1,100 +0,0 @@
-#@include core
-. /krebs/lib/core
-
-# TODO refactor this
-which_get_loader(){
-  if ! exists curl ; then
-    if ! exists wget ; then
-      warn "Please install curl or wget"
-      return 1
-    else
-      echo "wget -q -O-"
-    fi
-  else
-    echo "curl -L -s"
-  fi
-  return 0
-}
-
-which_head_loader(){
-  if ! exists curl ; then
-    if ! exists wget ; then
-      warn "Please install curl or wget"
-      return 1
-    else
-      echo "wget -O- --spider -S -q"
-    fi
-  else
-    echo "curl -L -I -s"
-  fi
-  return 0
-}
-
-http_get(){
-    eval "$(which_get_loader)" "${1?please provide url}"
-}
-http_head(){
-    eval "$(which_head_loader)" "${1?please provide url}" 2>&1
-}
-
-internet(){
-    secret=$(http_get http://krebsco.de/secret 2>/dev/null)
-    if [ "$secret" = "1337" ]; then
-        return 0
-    else
-        echo "cannot load secret or secret incorrect" >&2
-        return 1
-    fi
-}
-
-which_telnet(){
-  # find Telnet or similar and executes it at the end
-  # requires exist
-  # if env TELNET is set, will be trying to run this 
-  # Tries the following things:
-  #     telnet
-  #     nc
-  #     netcat
-  #     busybox telnet
-  if [ -e "${TELNET:-does_not_exist}" ]; then
-    info "Will be using $TELNET as Telnet Client"
-    echo $TELNET
-  elif exists telnet ;then
-    command -v telnet
-  elif exists nc ;then
-    command -v nc
-  elif exists netcat;then
-    command -v netcat
-  elif exists busybox;then
-    echo  `command -v busybox` telnet
-  else
-    die 'Cannot find telnet binary, please install either telnet-client or busybox or netcat or provided TELNET environment.'
-  fi
-}
-
-run_telnet(){
-  host="$1"
-  port="$2"
-  $(which_telnet) "$host" "$port"
-}
-
-send_irc(){
-  ## 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="${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; ) | run_telnet $IRCSERVER $IRCPORT 2>/dev/null
-}
diff --git a/filehooker/root-image/krebs/lib/punani b/filehooker/root-image/krebs/lib/punani
deleted file mode 100644
index 4338d19d..00000000
--- a/filehooker/root-image/krebs/lib/punani
+++ /dev/null
@@ -1,99 +0,0 @@
-#@include core
-#@include _punani_db
-
-## usage: punani_has PACKAGE
-punani_has() {
-  eval "_punani_${PACKER}_has \"\$1\""
-}
-
-## usage: punani_owner PACKAGE
-punani_owner() {
-  eval "_punani_${PACKER}_owner \"\$1\""
-}
-
-## usage: punani_install PACKAGE
-punani_install() {
-  eval "_punani_${PACKER}_install \"\$1\""
-}
-
-## usage: punani_remove PACKAGE
-punani_remove() {
-  eval "_punani_${PACKER}_remove \"\$1\""
-}
-
-## usage: _punani_resolve_package PKGNAME
-_punani_resolve_package(){
-  eval "set -u; echo \"\${_punanidb_${PACKER}_$1}\"" 2>/dev/null
-}
-
-## usage: _punani_select_packer
-_punani_select_packer() {
-  for p in ${_punani_known_packers:-null}; do
-    exists $p && info "using $p" && PACKER=`echo $p | tr -d -` && break
-  done
-}
-_punani_known_packers='pacman apt-get yum brew'
-_punani_pacman_install(){ pacman --noconfirm -S --needed "$@" ;}
-_punani_pacman_remove(){ pacman --noconfirm -Rcs "$@" ;}
-_punani_pacman_has(){ pacman -Q "$1" >/dev/null;}
-_punani_pacman_owner() { pacman -Qo "$1"; }
-_punani_aptget_install(){ apt-get -y install "$@" ;}
-_punani_aptget_remove(){ apt-get -y remove "$@" ;}
-_punani_aptget_has() { dpkg -s "$1" | grep -q "Status: install";}
-_punani_aptget_owner() { dpkg-query -S "$1" | cut -d: -f1;}
-_punani_yum_install(){ yum -y install "$@" ;}
-_punani_yum_remove(){ yum -y remove "$@" ;}
-_punani_yum_has() { rpm -qa --qf "%{NAME}\n"| egrep  "^${1}\$" >/dev/null ;}
-_punani_yum_owner(){ rpm -qf "$1" ;}
-_punani_brew_install(){ brew install "$@"; }
-_punani_brew_remove(){ brew remove "$@";}
-# TODO _punani_brew_has
-
-punani(){
-  # punani UI
-  _punani_usage='punani {install,remove,has,owner} PACKAGE...'
-  _punani_select_packer || die 'no package manager found; no punani for you!'
-
-  ACTION="$1"; shift
-
-  if test $# = 0; then
-    error 'no PACKAGE specified.'
-    die "usage: $_punani_usage"
-  fi
-
-  for PKG; do
-    RES="`_punani_resolve_package $PKG`" ||
-      die "could not resolve '$PKG'; no punani for you!"
-
-    case "$ACTION" in
-      install)
-        if punani_has $RES; then
-          info "$RES already installed, skipping"
-        else
-          punani_install $RES || die "cannot install $RES with $PACKER"
-        fi
-        ;;
-      remove)
-        if ! punani_has $RES; then
-          info "$RES not installed, skipping"
-        else
-          punani_remove $RES || die "cannot install $RES with $PACKER"
-        fi
-        ;;
-      has)
-        if punani_has $RES; then
-          info "$RES is installed"
-        else
-          info "$RES is not installed"
-          exit 1
-        fi
-        ;;
-      owner)
-        punani_owner $RES
-        ;;
-      *)
-        error "bad action: $ACTION"
-        die "usage: $_punani_usage"
-    esac
-  done
-}
diff --git a/filehooker/root-image/krebs/lib/retiolum b/filehooker/root-image/krebs/lib/retiolum
deleted file mode 100644
index 1e55041c..00000000
--- a/filehooker/root-image/krebs/lib/retiolum
+++ /dev/null
@@ -1,99 +0,0 @@
-#!/bin/sh
-# retiolum host functions
-#@include core
-#@include network
-tinc_path=${tinc_path:-/etc/tinc}
-netname=${netname:-retiolum}
-hosts_dir=${hosts_dir:-$tinc_path/$netname/hosts}
-supernode_urls="http://euer.krebsco.de/retiolum/supernodes.tar.gz"
-reload_tinc(){
-  info "reloading tinc configuration"
-  pkill -HUP tincd || tinc -n $netname reload;
-}
-
-refresh_supernode_keys(){
-  for url in $supernode_urls;do
-    info "Trying $url to retrieve supernodes"
-    if http_get "$url" \
-       | tar xvz -C $hosts_dir | xargs -n1 echo "refreshed:" ;then
-      info "refreshed supernode keys"
-      return 0
-    else
-      error "$url unusable for retrieving supernode host files"
-    fi
-  done && return 1
-}
-
-find_supernodes(){
-  cd $hosts_dir
-  set +f
-  for name in `
-    grep '^[  ]*Address[  ]*=' * |
-      cut -d: -f1 | sort | uniq
-  `; do
-    if eval "`sed -n '
-        s/[   ]\+//g
-        s/^\(Address\|Port\)=\(.*\)/\1="\${\1+\$\1\n}\2"/p
-      ' $name`"; then
-      port=${Port-655}
-      for host in $Address; do
-        if nc -zw 2 $host $port 2>/dev/null; then
-          echo "$name [('$host', $port)]"
-        fi &
-      done
-      wait
-    fi &
-  done
-  wait
-  cd - >/dev/null
-}
-
-find_active_nodes(){
-  # TODO this function currently only supports a single address for a host
-  cd $hosts_dir
-  # posix grep does not support [[:space:]]
-  set +f
-  for name in `
-    grep '^[  ]*Address[  ]*=' * |
-      cut -d: -f1 | sort | uniq
-  `; do
-    if eval "`sed -n '
-        s/[   ]\+//g
-        s/^\(Address\|Port\)=\(.*\)/\1="\${\1+\$\1\n}\2"/p
-      ' $name`"; then
-      port=${Port-655}
-      for host in $Address; do
-        if nc -zw 2 $host $port 2>/dev/null; then
-          echo "$name [('$host', $port)]"
-        fi &
-      done
-      wait
-    fi &
-  done
-  wait
-  cd - >/dev/null
-}
-
-check_free_v4(){
-  myipv4=${1-10.243.0.-1}
-  v4num=${myipv4##*.}
-  printf "Retard check: "
-  if [ "$v4num" -gt 0 -a "$v4num" -lt "256" ];
-  then 
-    info "No retard detected\n"
-    cd $hosts_dir
-    info "Check if ip is still free: "
-    for i in `ls -1`; do
-      if grep -q -e $myipv4\$ $i ;then
-        error "Host IP already taken by $i! "
-        return 1
-      fi
-    done
-    info "Passed\n"
-    return 0
-  else
-    error "you are made of stupid. bailing out\n" 
-    return 1
-  fi
-  cd - >/dev/null
-}
diff --git a/filehooker/root-image/krebs/lib/tahoe b/filehooker/root-image/krebs/lib/tahoe
deleted file mode 100644
index 6960b3e7..00000000
--- a/filehooker/root-image/krebs/lib/tahoe
+++ /dev/null
@@ -1,34 +0,0 @@
-#@include core
-#@include network
-#@include punani
-
-tahoe_home=/home/tahoe
-tahoe_dir=$tahoe_home/.tahoe
-tahoe_init(){
-    # installs dependencies, user and a virtual environment for the tahoe user
-    punani install gpp pip2 python2_dev python2  virtualenv
-    has_user tahoe || useradd -r -m -b $tahoe_home -s /bin/false
-    cd $tahoe_home
-    virtualenv --no-site-packages -p "`type -p python2.7`"
-    . bin/activate
-    pip install  twisted pyasn1
-    pip install allmydata-tahoe
-    chown tahoe -R $tahoe_home
-}
-tahoe_create_node(){
-    # requires tahoe_init
-    sudo -u tahoe create-node  $tahoe_dir
-    sudo -u tahoe cat  > $tahoe_dir/tahoe.cfg <<EOF
-[node]
-nickname = $(get_hostname)
-web.port = 
-web.static = public_html
-
-[client]
-introducer.furl = $(http_get http://pigstarter/tahoe/introducer.furl)
-helper.furl = $(http_get http://pigstarter/tahoe/helper.furl)
-[storage]
-enabled = true
-reserved_space = 1G
-EOF
-}
diff --git a/filehooker/root-image/krebs/lib/tor b/filehooker/root-image/krebs/lib/tor
deleted file mode 100644
index 8d9e33f1..00000000
--- a/filehooker/root-image/krebs/lib/tor
+++ /dev/null
@@ -1,19 +0,0 @@
-# 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/}
-
-configure_hidden_service(){
-    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
-}
diff --git a/filehooker/root-image/krebs/lib/vim b/filehooker/root-image/krebs/lib/vim
deleted file mode 100644
index b037a778..00000000
--- a/filehooker/root-image/krebs/lib/vim
+++ /dev/null
@@ -1,40 +0,0 @@
-# configure vim
-
-vimrc=${vimrc:-$HOME/.vimrc}
-
-vim_conf_sane_defaults(){
-    # TODO - make stuff more modular?
-    cat >>$vimrc<<EOF
-set nocompatible
-filetype plugin indent on
-syntax on
-set vb
-set foldenable
-set foldmethod=syntax
-set ignorecase
-set incsearch
-set showmatch
-set matchtime=3
-set hlsearch
-set backupdir=~/.vim/backup
-set directory=~/.vim/backup
-inoremap <F1> <ESC>
-nnoremap <F1> <ESC>
-vnoremap <F1> <ESC>
-set wildignore=*.o,*.obj,*.bak,*.exe,*.os
-cmap w!! w !sudo tee > /dev/null %
-colorscheme darkblue
-set background=dark
-set number
-set mouse=
-set shiftwidth=2
-set tabstop=2
-set et
-set sw=2
-set smarttab
-set autoindent
-set backspace=indent,eol,start
-set nocp
-EOF
-    mkdir -p $HOME/.vim/backup
-}
-- 
cgit v1.2.3