A script for easily building customized images of pentesting distros (Kali and ParrotSec).
Find a file
Kaj Forney 586c1226e1 Merge pull request #1 from kforney/unattended
Add CLI options and no-menu mode.

Former-commit-id: f5e8f6458384dc2ed0feca0f5f8a080189192030
Former-commit-id: 90bc2bcb86dc64bda244f39cd0584138eb173cd4
2018-10-03 14:23:58 -06:00
build Add directories. 2018-09-26 17:00:39 -06:00
config Add the rest of the desktop environments. 2018-09-27 00:58:56 -06:00
debs Add autologin and custom tmux config. 2018-09-27 17:40:01 -06:00
filesystem Add autologin and custom tmux config. 2018-09-27 17:40:01 -06:00
images Add directories. 2018-09-26 17:00:39 -06:00
modules Fix for use with Debian. 2018-10-01 22:46:22 -06:00
LICENSE Initial commit 2018-09-05 17:05:27 -06:00
README.md Update README.md 2018-10-03 00:57:40 -06:00
runme.sh Fix unary operators. 2018-10-01 22:42:40 -06:00

Pentest Distro Builder

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

Running

Just clone the repository, then make whatever changes you wish to make.

  • .deb files in the debs/ folder will be installed into the image.
  • Files in the filesystem/ folder will be copied to the system.
  • Add any extra software from the repository you wish to install to the config/software.list.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.

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:

  • -u
    • Unattended mode (skip the menu, required for the other options to function)
  • -l
    • Linux distribution you wish to build (can be either "Kali" or "Parrot")
  • -d
    • Desktop environment (can be one of "cinnamon", "gnome", "kde", "lxde", "mate", or "xfce")
  • -r (optional)
    • Repository (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.