summaryrefslogtreecommitdiffstats
path: root/ship/src/filehooker_install
diff options
context:
space:
mode:
authormakefu <root@pigstarter.de>2014-03-09 23:07:05 +0100
committermakefu <root@pigstarter.de>2014-03-09 23:07:05 +0100
commit0f58a42f4442afc84534c866bf765bab2735173f (patch)
tree1f8914aa9d13454e2cd241502b12692b01ec495a /ship/src/filehooker_install
parent0970f673456cf8bef932aef048bb89f6178eb104 (diff)
ship: update filehooker install
Diffstat (limited to 'ship/src/filehooker_install')
-rwxr-xr-xship/src/filehooker_install17
1 files changed, 11 insertions, 6 deletions
diff --git a/ship/src/filehooker_install b/ship/src/filehooker_install
index 108f2421..1b9717f1 100755
--- a/ship/src/filehooker_install
+++ b/ship/src/filehooker_install
@@ -1,8 +1,15 @@
#/bin/sh
+#@info
#@strict
#@include core
+## colored logging
#@include color
#@include network
+
+## for tor hidden service
+#@include tor
+
+## for ncdc
#@include filehooker
pass=lolwut.aidsballs
admin=pimp
@@ -66,8 +73,9 @@ info "generating configs"
genfstab -U -p /mnt > /mnt/etc/fstab
info "beginning chroot!"
+########### BEGIN CHROOT #####
arch-chroot /mnt << EOF
-
+#@strict
msg() { printf "\$*\n" >&2; }
info() { msg "$green\$*$nc"; }
error() { msg "$green\$*$nc"; }
@@ -102,17 +110,14 @@ grub-mkconfig > /boot/grub/grub.cfg 2>/dev/null
useradd -m hooker
exit
EOF
+######## END CHROOT ##########
info "configuring tor"
torrc=/mnt/etc/tor/torrc
hidden_service_dir=/var/lib/tor/hidden_service/
-#@include tor
configure_hidden_service
info "publishing hidden service address"
cat $hidden_service_dir/hostname | send_irc
info "configure ncdc"
-ncdc_install
-netshare=
-dc_hub=adcs://elch.nsupdate.info:2781
-configure_ncdc
+curl conf.krebsco.de/filehooker_configure_ncdc | arch-chroot /mnt
info "We're all done, simply reboot!"