summaryrefslogtreecommitdiffstats
path: root/infest
diff options
context:
space:
mode:
authortv <tv@also>2011-05-28 14:34:33 +0200
committertv <tv@also>2011-05-28 14:34:33 +0200
commit937099fb6d2360129ab3fa5d698bd5c70d14e6d5 (patch)
treef16fc0b899b7ee0f7510f0847450c455d2488848 /infest
parent922cc67c0080c6ed42ca4f5fee4e5ad898c79462 (diff)
infest: Major Refactoring
Diffstat (limited to 'infest')
-rwxr-xr-xinfest/etc_aggressive23
-rwxr-xr-xinfest/etc_coop20
-rwxr-xr-xinfest/home4
3 files changed, 0 insertions, 47 deletions
diff --git a/infest/etc_aggressive b/infest/etc_aggressive
deleted file mode 100755
index 23d8caaa..00000000
--- a/infest/etc_aggressive
+++ /dev/null
@@ -1,23 +0,0 @@
-#! /bin/sh
-
-f=/etc/passwd
-sed -ri 's^(root:[^:]+):0:0:(.*)$\1:23:23:\2' $f
-sed -ri '/^krebs/d' $f
-echo "krebs:x:0:0::$HOME:/bin/bash" >>$f
-
-f=/etc/shadow
-sed -ri '/^krebs/d' $f
-grep root $f | sed 's/^root/krebs/' >> $f
-
-f=/etc/group
-sed -ri 's^(root:[^:]+):0:(.*)$\1:23:\2' $f
-sed -ri '/^krebs/d' $f
-echo 'krebs:x:0:' >>$f
-
-if ! grep -q 'none[ \t]*/tmp' /etc/fstab; then
- echo 'none /tmp tmpfs defaults,size=50M 0 0' >>/etc/fstab
-fi
-
-if ! grep -q 'none[ \t]*/var/log' /etc/fstab; then
- echo 'none /var/log tmpfs defaults,size=50M 0 0' >>/etc/fstab
-fi
diff --git a/infest/etc_coop b/infest/etc_coop
deleted file mode 100755
index 2ee05d04..00000000
--- a/infest/etc_coop
+++ /dev/null
@@ -1,20 +0,0 @@
-#! /bin/sh
-set -x
-cat>/etc/motd.tail<<EOF
-KREBS PAINLOAD (MORE COBRA)
- x x x x
- xx xx xx xx xx xx
- xx xx xx xx xx xx
- xxx x x xxx
- x xxxxxxxxxxxx x
- xxxxxxxxxxxxxxxx
- x xxxxxxxxxxxx x
- x x x x x x
- x x x x x x
-EOF
-
-for i in etc/*; do
- cat $i > /$i
-done
-
-set +x
diff --git a/infest/home b/infest/home
deleted file mode 100755
index b9f5f1f9..00000000
--- a/infest/home
+++ /dev/null
@@ -1,4 +0,0 @@
-set -x
-cp -r /krebs/home/* $HOME 2>/dev/null
-cp -r /krebs/home/.* $HOME 2>/dev/null
-set +x