Spinning up a fresh install of Kali Linux and then running apt update && apt -y full-upgrade
can take 45+ minutes.
This script creates an up-to-date Kali Linux AMI with XRDP installed too.
-
Set up your AWS credentials in one of the following ways:
- Set the
AWS_ACCESS_KEY_ID
,AWS_SECRET_ACCESS_KEY
andAWS_DEFAULT_REGION
environment variables. - Create an AWS Named Profile. You will need to configure a default profile or set the
AWS_DEFAULT_PROFILE
environment variable.
- Set the
-
Download Packer:
cd /tmp wget https://releases.hashicorp.com/packer/1.4.1/packer_1.4.1_linux_amd64.zip unzip packer_1.4.1_linux_amd64.zip sudo mv packer /usr/bin
-
Run the following command:
make build
- Username:
root
- Password:
toor