diff options
author | krebs <krebs@UTART> | 2011-05-05 11:33:49 +0200 |
---|---|---|
committer | krebs <krebs@UTART> | 2011-05-05 11:33:49 +0200 |
commit | cb1664c7f07c17e729b07a06e7f2547603f700e9 (patch) | |
tree | eecf8001acd4aceccc7f96a6c0bb3cc5604e60ba /infest/etc | |
parent | fd34f20c2898dc7e72030b775983e73f9fd45b12 (diff) |
infest/etc: do all the various /etc infestation
Diffstat (limited to 'infest/etc')
-rwxr-xr-x | infest/etc | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/infest/etc b/infest/etc new file mode 100755 index 00000000..72e7e074 --- /dev/null +++ b/infest/etc @@ -0,0 +1,28 @@ +#! /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 + +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 + +f=/etc/group +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 |