attack_range_local icon indicating copy to clipboard operation
attack_range_local copied to clipboard

Building Attack Range Local

Open wsisulak opened this issue 6 years ago • 6 comments

When running the following command the following error is produced.

Command: "python attack_range_local.py" -a build

Error: "The VirtualBox VM was created with a user that doesn't match the current user running Vagrant. VirtualBox requires that the same user be used to manage the VM that was created. Please re-run Vagrant with that user. This is not a Vagrant issue."

wsisulak avatar Oct 29 '20 14:10 wsisulak

Can you please explain a little further on how you have set up the system?

kseidenschnur avatar Oct 29 '20 15:10 kseidenschnur

I simply ran the following script:

#!/bin/bash sudo apt-get update sudo apt-get install -y python3-dev linux-headers-generic python-dev unzip python-pip vagrant virtualbox virtualbox-dkms python-virtualenv git ruby-full sudo gem install winrm-elevated sudo gem install winrm git clone https://github.com/splunk/attack_range_local && cd attack_range_local virtualenv -p python3 venv source venv/bin/activate pip install -r requirements.txt

Note I had to add git and ruby-full (for gem) as those packages were not present and also needed to be installed. The first time I ran the build command it ran successfully. I'm not sure if I need to run it each time or just once but if I try to run it a second time it fails.

wsisulak avatar Oct 29 '20 15:10 wsisulak

The script above is only needed once for installation. Did the first build ran successfull?

kseidenschnur avatar Oct 29 '20 15:10 kseidenschnur

yes. so after the first build what are the steps to run the simulations again after you have shut down and logged off and then powered on again?

wsisulak avatar Oct 29 '20 16:10 wsisulak

After the build for each run, after you have powered off the machine and restarted, is the correct sequence as follows:

  1. cd to attack_range_local directory location
  2. source venv/bin/activate
  3. python attack_range_local.py -a simulate -st T1003.001 -t attack-range-windows-domain-controller

wsisulak avatar Oct 29 '20 16:10 wsisulak

Nothing more to add! :)

kseidenschnur avatar Oct 29 '20 17:10 kseidenschnur