The purpose of this task is to set up a home network that allows the testing of software security within a confined space, not accessible from the outside world. You can install your applications that you test in a secured lab.
For a home based lab, you can set up several VM’s to suit your needs. Typically you’ll want some Windows varieties in the lab and your attack vector machine. In this example I’m using Kali Linux VM as the attack machine, and a Windows 7 VM the target.
- Windows 7 VM
- Kali Linux VM
VirtualBox can be downloaded from: Downloads – Oracle VM VirtualBox
Windows VM’s can be downloaded from: https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/#downloads
Kali Linux can be downloaded from: Official Kali Linux Downloads | Kali Linux
Once you have setup the VM’s with VirtualBox (which I won’t go into detail here – but should be covered in each respective OS VM distribution source), you’ll want to configure the network they belong to. Before you get too far, you may need internet access to download various applications.
If you modify the settings on your VM’s to use a “Bridged Adapter” and you’re primary machine has internet access – it should pass the access through to the VM.
However, once you start testing, you probably want to disable this. The following Kali Linux guide will walk you through with setting up a Linux machine with a static and internal IP:
On the Windows side you’ll want to:
- go to the control panel
- click Network and Internet
- click Network Sharing
- click Local Area Connection…
- click Properties
- select ipv4 and click properties
- you can fill it out like the screen provided – which will match with the Linux Guide above, getting you on the same network:
Restart Windows and see if your windows machine can ping the Kali box.
You’ll also want to take a snapshot of your Windows install once you have it set up (with your software, any languages, etc.) The reason for the Windows snapshot, is that the provided VM’s by Microsoft are good for 90 days and they they need to be reverted – as pointed out in their documentation. They recommend snapshotting so you have a good and clean install to revert to each time.
To take a snapshot in VirtualBox, click Machine > Take Snapshot while the Windows VM in question is in focus.