Skip to content

Script to automatically set up a chroot environment

License

Notifications You must be signed in to change notification settings

Pendrag00n/chRooter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 

Repository files navigation

chRooter

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.

Installation

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

Usage

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

About

Script to automatically set up a chroot environment

Topics

Resources

License

Stars

Watchers

Forks

Languages