mkdir git
mkdir dev
cd dev
mknod -m 666 null c 1 3
mknod -m 666 tty c 5 0
mknod -m 666 zero c 1 5
mknod -m 666 random c 1 8
chown root:root git
chown 0755 git
cd git
mkdir bin
cp /bin/bash .
identify libs:
ldd /bin/bash
create libs folder
cd ..
mkdir -p lib/x86_64-linux-gnu/
mkdir lib64
copy libs to folder
cp ... ...
useradd git
mkdir etc
cp /etc/passwd etc
cp /etc/group etc
cat << EOF
Match User git
ChrootDirectory /var/www/git
EOF >> /etc/ssh/sshd_config
systemctl restart sshd
emile - 1733420135.935396s - generated using vokobe "0.1.3"