chRooter
is a simple script that manually sets up a chrooted user on a Linux system. It allows you to easily specify the path to the chroot environment, the username for the chrooted user, and the binaries to include in the chroot.
To use chRooter, simply download the script to your Linux system:
$ wget https://raw.githubusercontent.com/Pendrag00n/chRooter/main/chrooter.sh
Make the script executable:
$ sudo chmod +x chrooter.sh
Modify the variables to fit your needs and then, run it:
$ sudo ./chrooter.sh
To run chRooter
, simply modify the following variables and then run the script:
$chrootpath
: The path to the new chroot environment.$chrootuser
: The username for the chrooted user.$binaries
: A list of binaries to include in the chroot environment.$corebinaries
: These are core binaries that give the envivorement it's basic functionalities.
Before using this script for anything serious, I recommend giving Escaping From Jails a quick read and watching Balázs Bucsay's Conference on the matter