Preparing the OS
Installing the requirements to run the Red Team home lab
Preparing the OS to run the Red Team home lab
Windows
We are going to use Windows 10 pro or a Windows server and Hyper-V to create the Red Team home lab.
Here we are detailing step-by-step, if you want just the commands go to the summary
1 Installing RSAT tools
If we are using a Windows 10 pro we are going to install first the RSAT tools. We can list them by opening a Powershell as an admin and type:
To install all the available RSAT tools at once, we run:
2 Enable Hyper-V
We can enable Hyper-V by opening a Powershell as an admin and type:
And we reboot
3 Enable WSL
The Host server will serve as the attacker machine.
It will host the C2 and also we are going to leverage the Windows Subsystem for Linux to use Kali.
You must first enable the WSL feature.
Open PowerShell as Administrator and run:
4 Enable Virtual Machine feature
Before installing WSL 2, you must enable the Virtual Machine Platform optional feature.
Open PowerShell as Administrator and run:
Restart your machine to complete the WSL install and update to WSL 2.
5 Download the Linux kernel update package
Download the latest package by opening PowerShell as Administrator and run:
And we run it with:
6 Set WSL 2 as the default
Open PowerShell as Administrator and run:
7 Download Kali
Open PowerShell as Administrator and run:
8 Install Kali
Open PowerShell as Administrator and run:
and set it up:
9 Install git
Download the last release of git for windows and install it
AutomatedLab
For building and running the lab we are going to use AutomatedLab
AutomatedLab (AL) enables you to setup test and lab environments on Hyper-v or Azure with multiple products or just a single VM in a very short time. There are only two requirements you need to make sure: You need the DVD ISO images and a Hyper-V host or an Azure subscription.
1 Download and install the last release
We download AutomatedLab.msi from the last release on Github:
And install it
2 SetUp Automated lab
Open PowerShell as Administrator and run:
Docker
For managing ELK as an air gapped solution we need to host our own Elastic Package Registry.
For that we need to install Docker
We download the last stable release and install it
Create a file as C:\startDocker.ps1
Run in an elevated powershell cmd
Summary
Open PowerShell as Administrator and run:
Reboot
Reboot
We download and install the last git release
We download and install AutomatedLab.msi from the last release on Github:
We download and install the last stable release of Docker
Create a file as C:\startDocker.ps1
Run in an elevated powershell
Last updated