gidcs / jail.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jailed.sh

how to use it

_dir="test"
./jail.sh -d ${_dir} \
    /bin/{ls,cat,echo,rm,bash,mv,touch} \
    /usr/bin/{vim,scp,sftp} \
    /etc/hosts
sudo chroot ${_dir}

About


Languages

Language:Shell 100.0%