elreydetoda / samuraiwtf-base_box

The main SamuraiWTF collaborative distro repo.
http://www.samurai-wtf.org
GNU General Public License v3.0
0 stars 0 forks source link

DO NOT USE!!!

This was merged in this pr: https://github.com/SamuraiWTF/samuraiwtf/pull/136

SamuraiWTF Logo

Slack Github SourceForge Latest version License Twitter Hashtag Twitter handle


Want to chat with us? Come message us in the Professionally Evil slack.

Want to Contribute? See here

The purpose behind this project is to migrate the SamuraiWTF (http://www.samurai-wtf.org), which until now has been maintained as a monolithic virtual machine, to a "packageable" distribution system. The current direction of choice is Vagrant with a VirtualBox provider, which is the effort in this master branch. Alternative efforts can be found in other branches.

NOTE: for getting started quickly you can follow the ova installation here

Prerequisites

Initial Install

OVA

  1. Make sure you have the Virtualization Software and Disabled Hyper-V from the prereqs above
  2. Download the OVA to import a full virtual machine, here: https://tiny.si/samurai.
  3. Watch this video tutorial, made by webpwnized, which shows you how to install SamuraiWTF using the OVA.

Vagrant

  1. Make sure you have the prereqs listed above. Webpwnized has made some helpful YouTube video instructionals for getting Vagrant and VirtualBox with vbguest plugin installed in case you have not done so before.
  2. Clone this repository.
  3. From a command-line terminal in the project directory, run the command vagrant up. Then sit back and wait for it to finish.
  4. (Optional) If you want to understand this process a little more, we have a video that discusses what is happening with more detail. It is listed as a free course on our training site: https://training.secureideas.com/course/foldingsteel/

NOTE: The Guest VM's window will open with the CLI while provisioning is still ongoing. It's best to leave it alone until the vagrant up command fully completes.

Provisioning Scripts

SamuraiWTF is provisioned through the ansible-local Vagrant provisioner. Provisioning is organized into the following playbooks, all found in the install folder:

Development

Once you have a running environment, use the ansible playbooks to define any changes or additions to the installation. To test the change, there is no need to re-run the entire provisioning through Vagrant every time. Instead, you can just run one of the ansible playbooks from the vagrant folder inside the guest (i.e. first do vagrant ssh). For example, if you are adjusting a tool, you would type:

cd /vagrant
ansible-playbook -i /etc/ansible/hosts install/tools.yml

Note that this is run as the vagrant (non-privileged) user, and does not require sudo. Ansible will call sudo internally if needed.

Development Guidelines

Expected Errors

Sometimes there are some expected errors during the build process.

Production VM Notes:

Once you load the VM, the username and password are:

The menus are available in the top-left corner of the desktop.

Once you log in, there are a couple of things that might need to be adjusted manually.

First, load the Chrome bookmarks by starting Chrome. Then select the three dots menu and select Bookmarks. From the sub menu, select Import bookmarks and settings. In the window that opens, select Bookmarks HTML File. A file selector window will open. Select the chrome_bookmarks.html file in the samurai home directory.

Virtualbox Display

License

The scripts and resources belonging to this project itself are licensed under the GNU Public License version 3 (GPL3). All software loaded into the VM, including the tools, targets, utilities, and operating system itself retain their original license agreements.

Contributors

Contributors are very welcome and the contribution process is standard:

Substantial or Regular contributors may also be brought in as full team members. This includes those who have made substantial contributions to previous versions of SamuraiWTF with the assumption they will continue to do so.