2020-06-08 02:44:19 +08:00
|
|
|
---
|
|
|
|
title: "VMware"
|
|
|
|
date: 2020-05-26T20:57:14+03:00
|
|
|
|
draft: false
|
|
|
|
pre: '<i class="fas fa-laptop-code"></i> '
|
|
|
|
weight: 3
|
2021-01-28 02:24:46 +08:00
|
|
|
tags: ["setup", "vmware"]
|
2020-06-08 02:44:19 +08:00
|
|
|
---
|
|
|
|
|
|
|
|
## Deployment
|
|
|
|
|
2021-01-28 02:24:46 +08:00
|
|
|
1. Deploy the Infection Monkey OVA by choosing **Deploy OVF Template** and
|
|
|
|
following the wizard instructions. *Note: make sure ports 5000 and 5001 on
|
|
|
|
the machine are accessible for inbound TCP traffic.*
|
2021-01-27 02:36:51 +08:00
|
|
|
1. Turn on the Infection Monkey VM.
|
|
|
|
1. Log in to the machine with the following credentials:
|
2020-06-08 02:44:19 +08:00
|
|
|
1. Username: **monkeyuser**
|
2021-01-27 02:36:51 +08:00
|
|
|
1. Password: **Noon.Earth.Always**
|
2021-03-25 02:37:14 +08:00
|
|
|
1. For security purposes, it's recommended that you change the machine
|
|
|
|
passwords by running the following commands: `sudo passwd monkeyuser`, `sudo
|
|
|
|
passwd root`.
|
2020-06-08 02:44:19 +08:00
|
|
|
|
|
|
|
## OVA network modes
|
|
|
|
|
2021-01-23 02:09:47 +08:00
|
|
|
You can use the OVA in one of two modes:
|
2020-06-08 02:44:19 +08:00
|
|
|
|
2021-01-28 02:24:46 +08:00
|
|
|
1. In a network with the DHCP configured — In this case, the Monkey Island will
|
|
|
|
automatically query and receive an IP address from the network.
|
|
|
|
1. With a static IP address — In this case, you should log in to the VM console
|
2021-03-25 02:37:14 +08:00
|
|
|
with the username `monkeyuser` and the password `Noon.Earth.Always`. After logging
|
|
|
|
in, edit the Netplan configuration by entering the following command in the
|
2021-01-28 02:24:46 +08:00
|
|
|
prompt:
|
2020-06-08 02:44:19 +08:00
|
|
|
|
|
|
|
```sh
|
2021-03-27 00:23:43 +08:00
|
|
|
sudo nano /etc/netplan/00-installer-config.yaml
|
2020-06-08 02:44:19 +08:00
|
|
|
```
|
|
|
|
|
2021-03-25 02:37:14 +08:00
|
|
|
Make the following changes:
|
|
|
|
|
|
|
|
```diff
|
2021-03-27 00:23:43 +08:00
|
|
|
# This is the network config written by 'subiquity'
|
|
|
|
network:
|
|
|
|
ethernets:
|
|
|
|
ens160:
|
|
|
|
- dhcp4: true
|
|
|
|
+ dhcp4: false
|
|
|
|
+ addresses: [XXX.XXX.XXX.XXX/24]
|
|
|
|
+ gateway4: YYY.YYY.YYY.YYY
|
|
|
|
+ nameservers:
|
|
|
|
+ addresses: [1.1.1.1]
|
|
|
|
version: 2
|
2020-06-08 02:44:19 +08:00
|
|
|
```
|
|
|
|
|
2021-03-25 02:37:14 +08:00
|
|
|
Replace `XXX.XXX.XXX.XXX` with the desired IP addess of the VM. Replace
|
|
|
|
`YYY.YYY.YYY.YYY` with the default gateway.
|
2020-06-08 02:44:19 +08:00
|
|
|
|
2021-01-23 02:09:47 +08:00
|
|
|
Save the changes then run the command:
|
2020-06-08 02:44:19 +08:00
|
|
|
|
|
|
|
```sh
|
2021-03-25 02:37:14 +08:00
|
|
|
sudo netplan apply
|
2020-06-08 02:44:19 +08:00
|
|
|
```
|
2020-06-14 20:44:07 +08:00
|
|
|
|
2021-03-25 02:37:14 +08:00
|
|
|
If this configuration does not suit your needs, see
|
|
|
|
https://netplan.io/examples/ for more information about how to configure
|
|
|
|
Netplan.
|
|
|
|
|
2020-06-14 20:44:07 +08:00
|
|
|
## Upgrading
|
|
|
|
|
2021-01-28 01:54:35 +08:00
|
|
|
Currently, there's no "upgrade-in-place" option when a new version is released.
|
|
|
|
To get an updated version, download the updated OVA file.
|
|
|
|
|
|
|
|
If you'd like to keep your existing configuration, you can export it to a file
|
|
|
|
using the *Export config* button and then import it to the new Monkey Island.
|
2020-06-14 20:44:07 +08:00
|
|
|
|
|
|
|
![Export configuration](../../images/setup/export-configuration.png "Export configuration")
|