Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ninp0/2e97f1f34c956e90294f214e1edd2ffb to your computer and use it in GitHub Desktop.
Save ninp0/2e97f1f34c956e90294f214e1edd2ffb to your computer and use it in GitHub Desktop.

Purchase Vagrant + VMware license @ https://www.vagrantup.com/vmware/index.html and save file in /tmp/license.lic Install the Vagrant VMware Utility from https://www.vagrantup.com/docs/vmware/vagrant-vmware-utility.html

IF ON OSX, THIS IS IMPORTANT FOR OBTAINING THE PROPER VERSION of rsync to support userland configs:

<Install vagrant>
<Install macports>
$ sudo port install rsync
$ sudo vi /etc/paths AND ADD /opt/local/bin AT THE TOP OF THE FILE

CLONE CSI:

$ cd / && sudo git clone https://github.com/0dayinc/csi /opt/csi

CONFIGURE VMWARE USERLAND CONFIG:

$ sudo cp /opt/csi/etc/userland/vmware/vagrant.yaml.EXAMPLE /opt/csi/etc/userland/vmware/vagrant.yaml
<change settings in /opt/csi/etc/userland/vmware/vagrant.yaml>

CONFIGURE METASPLOIT USERLAND CONFIG:

$ sudo cp /opt/csi/etc/userland/vmware/metasploit/vagrant.yaml.EXAMPLE /opt/csi/etc/userland/vmware/metasploit/vagrant.yaml
<change password in /opt/csi/etc/userland/vmware/metasploit/vagrant.yaml>

CONFIGURE APACHE2 USERLAND CONFIG:

$ sudo cp /opt/csi/etc/userland/vmware/apache2/vagrant.yaml.EXAMPLE /opt/csi/etc/userland/vmware/apache2/vagrant.yaml
<update settings /opt/csi/etc/userland/vmware/apache2/vagrant.yaml in order to have TLS enabled on local deployment of OpenVAS and Jenkins>

CONFIGURE JENKINS USERLAND CONFIG:

$ sudo cp /opt/csi/etc/userland/vmware/jenkins/vagrant.yaml.EXAMPLE /opt/csi/etc/userland/vmware/jenkins/vagrant.yaml
<update settings /opt/csi/etc/userland/vmware/jenkins/vagrant.yaml in order to change default passwords>
<add Jenkins XML files in /opt/csi/etc/userland/vmware/jenkins/jobs_userland/ to automatically create Jenkins jobs @ deployment> 

CONFIGURE OPENVAS USERLAND CONFIG:

$ sudo cp /opt/csi/etc/userland/vmware/openvas/vagrant.yaml.EXAMPLE /opt/csi/etc/userland/vmware/openvas/vagrant.yaml
<update settings /opt/csi/etc/openvas/vagrant.yaml in order to change default passwords>

CONFIGURE BURPSUITE PRO CONFIG:

$ sudo cp /opt/csi/etc/userland/vmware/burpsuite/vagrant.yaml.EXAMPLE /opt/csi/etc/userland/vmware/burpsuite/vagrant.yaml
<update settings /opt/csi/etc/userland/vmware/burpsuite/vagrant.yaml in order to update SHA256 sum on Burp Pro Jar and Respective License>

DEPLOY CSI PER USERLAND CONSTRAINTS:

$ sudo chown -R $USER:staff /opt/csi
$ cd /opt/csi && ./install.sh vmware-fusion-gui
$ vagrant ssh
$ sudo passwd admin
<new password>
<new password>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment