A script for easily building customized images of pentesting distros (Kali and ParrotSec).
Find a file
2020-12-01 15:59:50 -07:00
build Add directories. 2018-09-26 17:00:39 -06:00
config Add conversion script for vanilla Kali. 2020-11-23 16:29:10 -07:00
debs Minor conversion script bugfix. 2020-11-23 16:39:45 -07:00
filesystem Add sleep statement to pingsweep. 2020-12-01 15:59:50 -07:00
images Add directories. 2018-09-26 17:00:39 -06:00
logs Quality of life update. 2019-01-25 00:19:04 -07:00
modules We want to build on Debian too... 2020-01-30 15:25:32 -07:00
.gitignore Add .gitignore file. 2018-11-16 15:01:00 -07:00
convert.sh Minor conversion script bugfix. 2020-11-23 16:39:57 -07:00
LICENSE Initial commit 2018-09-05 17:05:27 -06:00
README.md Update 'README.md' 2020-11-23 16:52:18 -07:00
runme.sh Revert change made while running on 2 hours of sleep. 2020-11-29 18:19:55 -07:00

Pentest Distro Builder

This script automates the process of building the most common pentesting Linux distributions, Kali Linux and Parrot Security OS.

Running

Clone this repository with git clone --recursive, then make whatever changes you wish to make.

  • Add any .deb files to the debs/ folder that you want installed into the image.
  • Add any files to the filesystem/ folder that you want on the final system.
  • Add any extra software from the repository you wish to install to the config/software.list.chroot file.
  • Add any commands you want to have run during the build process to the config/pentest-distro-builder.chroot file.

When you're ready to build, run sudo ./runme.sh . Once it's complete, the finished image will be copied to the images/ folder, and a log file will be created in the logs/ folder.

If you run the script without any options, it will build whichever OS you are currently running, and prompt for which desktop environment and repository you wish to use. If you wish, however, you can manually specify these options instead (for example, to script an image to be built nightly or weekly):

Flag Option Description
-u Unattended mode Skip the menu (required for the other options to function)
-l Distribution Can be either "Kali" or "Parrot"
-d Desktop environment Can be one of "cinnamon", "gnome", "kde", "lxde", "mate", or "xfce"
-r Repository (optional) Can be either "default" for the distribution's default repo, or an IP address

Examples

sudo ./runme.sh -u -l Kali -d mate -r 192.168.0.30

This will build a Kali Linux .iso, with the MATE desktop environment, using a local repository at 192.168.0.30

sudo ./runme.sh -u -l Parrot -d cinnamon

This will build a Parrot Security OS .iso, with the Cinnamon desktop environment, using the default Parrot repository.

If -r is unspecified, then the default will be used.

Converting a Vanilla Kali Installation

If you already have a copy of Kali installed, and just want to add our changes on top of it, simply run the "convert.sh" script. It will apply the modifications this script would have built into the image automatically. You do not have to be root to run the script; it will prompt for sudo as needed.