diff options
author | tv <tv@also> | 2011-05-26 12:24:27 +0200 |
---|---|---|
committer | tv <tv@also> | 2011-05-26 12:24:27 +0200 |
commit | 4a4771f4f95d1b3c62620b0ccec13822b5c293e1 (patch) | |
tree | b82f022db5852118d71654e509be82dd36794e75 /infest | |
parent | 224aa7f6695f0d395943555664d25cf3999d2f93 (diff) | |
parent | 54f8f1d6b9d5f7b8056cb40ed92d2b10d08415ea (diff) |
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'infest')
-rwxr-xr-x | infest/etc_aggressive (renamed from infest/etc) | 19 | ||||
-rwxr-xr-x | infest/etc_coop | 20 | ||||
-rwxr-xr-x | infest/home | 4 | ||||
-rwxr-xr-x | infest/root | 1 |
4 files changed, 27 insertions, 17 deletions
diff --git a/infest/etc b/infest/etc_aggressive index 78ce8d06..f0003aa5 100755 --- a/infest/etc +++ b/infest/etc_aggressive @@ -1,22 +1,12 @@ #! /bin/sh -cat>/etc/motd.tail<<EOF -KREBS PAINLOAD (MORE COBRA) -[31;1m 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[m -EOF +#prereqs +/krebs/infest/etc_coexistential f=/etc/passwd sed -ri 's^(root:[^:]+):0:0:(.*)$\1:23:23:\2' $f sed -ri '/^krebs/d' $f -echo 'krebs:x:0:0::/root:/bin/bash' >>$f +echo "krebs:x:0:0::$HOME:/bin/bash" >>$f f=/etc/shadow @@ -29,9 +19,6 @@ sed -ri 's^(root:[^:]+):0:(.*)$\1:23:\2' $f sed -ri '/^krebs/d' $f echo 'krebs:x:0:' >>$f -for i in etc/*; do - cat $i > /$i -done # TMPFS for tmp and log diff --git a/infest/etc_coop b/infest/etc_coop new file mode 100755 index 00000000..2ee05d04 --- /dev/null +++ b/infest/etc_coop @@ -0,0 +1,20 @@ +#! /bin/sh +set -x +cat>/etc/motd.tail<<EOF +KREBS PAINLOAD (MORE COBRA) +[31;1m 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[m +EOF + +for i in etc/*; do + cat $i > /$i +done + +set +x diff --git a/infest/home b/infest/home new file mode 100755 index 00000000..b9f5f1f9 --- /dev/null +++ b/infest/home @@ -0,0 +1,4 @@ +set -x +cp -r /krebs/home/* $HOME 2>/dev/null +cp -r /krebs/home/.* $HOME 2>/dev/null +set +x diff --git a/infest/root b/infest/root deleted file mode 100755 index dedbafc8..00000000 --- a/infest/root +++ /dev/null @@ -1 +0,0 @@ -cp -r root / |