OSX

Setup the Capsulecorp-pentest network on an Intel Mac (M1 docs are TBD)

1. Virtualbox

https://www.virtualbox.org/wiki/Downloads

  • Download the file labeled OS X hosts

  • Run the setup .dmg file and use the wizard to install. Should be able to accept all the defaults.

2. Vagrant

https://www.vagrantup.com/downloads.html

  • Download the 64-bit install file for macOS

  • Run the setup .dmg file and use the wizard to install. Should be able to accept all the defaults.

  • Open up a new bash prompt and type vagrant -v. Should see similar to the following

Vagrant 2.2.7

3. Ansible

Need to have pip installed first.

  • Download get-pip.py with curl.

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
  • Make sure your user can modify the /usr/local/lib directory

  • Install pip

You should see an ouput ismilar to the following

Place the following at the bottom of your *rc file. For me ~/.bashrc

Then, restart your terminal.

Update pip to the latest version

  • Install ansible

  • Install PyWinRM

Should see similar output to the following after running asible -v

In order for some of the ansible provision scripts to work you will need to place the following inside your ~/.bashrc or ~/.zshrc

4. Capsulecorp-pentest network

  • Check out the code from Github

  • cd into the repo directory

  • Bring up the VMs The VMs need to be brought up in a specific order and the provisioning ansible scripts need to execute properly on Goku first and foremost.

4.1. Goku

Vagrant will attempt to run the provision scripts which will take 10-15 minutes due to the 600 second timeout of the DC promotion reboot task. for reasons unknown this initial provision sometimes works and sometimes doesnt. If it doesn't rerun the provision playbooks

If Goku is provision correctly the rest of the VMs should not have any issues. Double check by connecting to GOKU via RDP and ensuring that you can login with the DA creds goku\PassW0rd432!.

4.2. Vegeta

Next bring up vegeta and run the provisioning ansible playbooks.

and

Last updated