Skip to content
Snippets Groups Projects
Unverified Commit 3613d339 authored by anarcat's avatar anarcat
Browse files

make sure busybox survives the destruction

Previous incantation of this didn't work because /root/sh got removed
and screen failed to spawn a new shell. By copying busybox in a tmpfs,
the binary is stored in core memory and therefore survives the disk
wipes.
parent 57f7f865
No related branches found
No related tags found
No related merge requests found
......@@ -48,10 +48,13 @@ garbage:
This will take a long time. When you return:
1. start a `screen` session with `busybox` as your `SHELL`
1. start a `screen` session with a static `busybox` as your `SHELL`
that will survive disk wiping:
ln -s /bin/busybox /root/sh
export SHELL=/root/sh
mkdir /root/tmp
mount -t tmpfs tmpfs /root/tmp
cp /bin/busybox /root/tmp/sh
export SHELL=/root/tmp/sh
exec screen -s $SHELL
2. kill all processes but the SSH daemon, your SSH connexion and
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment