Files
Notes/src/TXTs/Make Tiniest Chroot Ever.txt
2024-12-22 01:04:28 -06:00

16 lines
373 B
Plaintext

Make the directory our chroot would be in and the bin folder.
mkdir -p MyChroot/bin
Now, we need to download a shell. (For this example, use Ash from Busybox 1.26.)
wget https://busybox.net/downloads/binaries/1.26.2-i686/busybox_ASH -O MyChroot/bin/ash
Next, make the binary executable.
chmod +x MyChroot/bin/ash
To run chroot do;
chroot path/to/<shell>