CTF environment provisioned by vagrant
- Virtualbox(linux host) or Hyper-V(Windows host)
- vagrant
- packer
Build the required vagrant box file with packer
(linux)./setup.sh
or if windows host:
(windows) .\setup.bat
vagrant up [ctf-ubuntu, ctf-win, ctf-kali]
Modify group_vars\private.yml
to include the following optional variables for ansible in ctf-ubuntu. Note this file does not exist and is set in .gitignore so it isn't accidentaly commited to the repo.
---
pia_username: '<username_here>'
pia_password: '<password_here>'
git_username: '<username_here>'
git_email: '<email_here>'
-
Binaryninja Linux
- Requires BinaryNinja.zip in host-share directory
- Requires license.txt in host-share directory
-
Binaryninja for Windows
- Requires BinaryNinja.exe in chocolatey\binaryninja\tools directory
- Requires license.txt in host-share directory
-
IDAPro for Windows
- Requires idaprocw*.exe in host-share directory
- Requires ida-password.txt in host-share directory
This sets up a ctf environment i've been using ad-hoc for a little while. Its not perfect but enough to get you up and running.
Some things I do are:
- Always use private internet access for a vpn. (Other vpn services are available)
- Use Dropbox to share ctf files between VMs. This is my persistant storage with all my previous ctf problems and solutions.
- Do most of my work in the ubuntu VM. Kali for pen testing tools, and windows for when its required
Make sure you have ruby 2.6 or later installed. Tested with 2.6.6
You also need bsdtar. For this i installed Vagrant via the installer then copied the included bsdtar to C:\Windows\System32
. The default location is C:\HashiCorp\Vagrant\embedded\mingw64\bin\bsdtar.exe
- Kali box file does not exist for hyper-v and i haven't created one yet. so
vagrant up
orvagrant up ctf-kali
will not work on windows.
- Default user is vagrant
- Default password is vagrant
- Tools located in ~/tools/
- i3 wm is available