Automating custom Kali Linux builds for pentesting
For pentesters who perform consulting work for external customers, every project should start with a fresh installation of the operating system, which is typically Kali Linux. There are many ways to deploy Kali:
- Virtual machines
- Docker containers
- Cloud images
- Bare metal installation on laptops or other devices
This section will focus on building Kali ISO image installers using Bash scripting. The resulting ISO image will automate the installation of Kali on virtual machines or bare metal. The image file can be connected to a virtual machine or to a laptop or other device using USB storage. From there, you simply boot the system, and your custom image is installed.
Your system will need a few gigabytes of free disk space to create the image. The amount of free disk space needed depends on the options you choose and whether you choose to install all or a subset of packages. To begin building custom Kali...