Build a Base Image
axiom-build
Pick a Packer provisioner ๐ฃ
Running this may not be necessary if axiom-configure --run
completed successfully.
Example Usage
# axiom-build default
Usage
# axiom-build -h
โโโโโโ โโโ โโโ โโโโโโโ โโโ โโโโโโโโโ โโโโโโโ
โโโโโโโโโโโโโโโโ โโโโโโโโโโโ โโโโโโโโโ โโโโโโโโ
โโโโโโโโ โโโโโโ โโโโโโโโโโโ โโโโโโโโโ โโโ โโโ
โโโโโโโโ โโโโโโ โโโโโโโโโโโ โโโโโโโโโ โโโ โโโ
โโโ โโโโโโโ โโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโ โโโโโโ โโโ โโโโโโโ โโโโโโโ โโโโโโโโโโโโโโโโโโ
Maintainer: 0xtavian
๐ซ๐ช๐ผ๐ฒ๐ฌ๐ช๐ต๐ต๐, ๐ช๐๐ฒ๐ธ๐ถ: ๐ฝ๐ฑ๐ฎ ๐ญ๐๐ท๐ช๐ถ๐ฒ๐ฌ ๐ฒ๐ท๐ฏ๐ป๐ช๐ผ๐ฝ๐ป๐พ๐ฌ๐ฝ๐พ๐ป๐ฎ ๐ฏ๐ป๐ช๐ถ๐ฎ๐๐ธ๐ป๐ด ๐ฏ๐ธ๐ป ๐ฎ๐ฟ๐ฎ๐ป๐๐ซ๐ธ๐ญ๐! - @๐น๐ป๐0๐ฌ๐ฌ @0๐๐ฝ๐ช๐ฟ๐ฒ๐ช๐ท
Description:
axiom-build supports both legacy Packer JSON files as well as the new HCL format
axiom-build combines a cloud provider's Builder (~/.axiom/images/$format/builders) with a Provisioner (~/.axiom/images/$format/provisioners)
to generate the final Packer file (~/.axiom/images/$format/axiom.$format)
Using Packer, axiom-build creates an image with the tools pre-installed, as defined by the chosen Provisioner
Choose between multiple Provisioners (barebones, default, reconftw, and extras) or bring your own (custom)
axiom-build adds your SSH key to the image, allowing you to connect to instances created using the image
By default, it creates and uses an SSH key located at ~/.ssh/axiom_ssh.pub, but you can specify a custom SSH key if needed
Examples:
axiom-build --run # Kick off the interactive build wizard
axiom-build default # Build a new Packer image using the Default Provisioner
axiom-build barebones --debug # Build a new Packer image using the Barebones Provisioner, run with --debug
axiom-build --ssh-key ~/.ssh/id_rsa.pub # Set a custom SSH key (default is SSH key in ~/.ssh/axiom_ssh.pub)
Usage:
<provisioner> (optional)
Name of provisioner to build, options are barebones, default, reconftw, extras or custom (provisioner must be located in ~/.axiom/images/$format/provisioners)
--run (optional)
Start axiom-build setup wizard
--legacy (optional)
Use legacy Packer JSON Builder and Provisioner instead of pkr.hcl
--ssh-key <file to pub key> (optional)
Build the image using a custom SSH key (instead of using the default ssh key axiom creates ~/.ssh/axiom_ssh.pub)
--debug (optional)
Enable debug mode (VERY VERBOSE!)
--help (optional)
Display this help menu
Provisoners
You can provide your provisioner inline or after running axiom-build --run.
We currently offer four different base provisioner files to build images.
Default is our latest iteration of axiom provisioners. It comes with all tools installed and has been optimized for readability. Recommended for axiom-fleet
ReconFTW includes all tools in ReconFTW and works with most modules. Recommended for ReconFTW.
Barebones is a decently secure base install, comes with Docker, Go-lang, Interlace and nmap installed. Recommended for templating.
Extras has more tools installed compared to default
Custom Images
If you want to bring-your-own Packer JSON provisioner, select custom. Make sure your packer json is placed in ~/.axiom/images/provisioners
See Bring Your Own Provisionerfor more information.
Last updated