This is my CTF VM script. It is an amalgamation of my own dotfiles and customization, some customizations from g0tmi1k, the guts of EpicTreasure from ctfhacker, and an installer for the Penetration Testers Framework by TrustedSec.
I currently run this in an Ubuntu 16.04 VM.