CSE434 VM Configuration

VirtualBox

Install VirtualBox through offical website:
https://www.virtualbox.org/wiki/Downloads

Creating a New Windows VM in VirtualBox

After installation, you can download Windows 10 ISO file from Microsoft website:
https://www.microsoft.com/en-us/evalcenter/evaluate-windows-10-enterprise

Then create a new virtual machine in VirtualBox.

  1. Create a new VM:

    • Click the “New” button in VirtualBox
    • Name your VM and select Windows 10 as the operating system
  2. Setup Password

    • Set a strong password for the VM
    • Sample username and password: cse4304
  3. Configure VM specifications:

    • RAM: 4GB or more
    • Storage: 60GB or more
    • Processors: 2 cores minimum
    • Install Guest Additions for better usage
    • Use UEFI for better initial boot

setup

  1. Start the VM and install Windows 10
    • Insert the Windows 10 ISO file into the virtual DVD drive
    • Boot the VM and follow the installation wizard

init

  1. ping 8.8.8.8 and snapshot
    • Open command prompt
    • Type “ping 8.8.8.8” and press Enter
    • If you get a response, your VM is connected to the internet

ping

create a snapshot of windows.

Install FlareVM

FLARE-VM should ONLY be installed on a virtual machine. The VM should satisfy the following requirements:
- Windows ≥ 10
- PowerShell ≥ 5
- Disk capacity of at least 60 GB and memory of at least 2GB
- Usernames without spaces or other special characters
- Internet connection
- Tamper Protection and any Anti-Malware solution (e.g., Windows Defender) disabled, preferably via Group Policy
- Windows Updates Disabled

Install flareVM through the following commands:

  1. Open PowerShell as administrator

  2. Download the FlareVM installation script to your Desktop:

1
(New-Object net.webclient).DownloadFile('https://raw.githubusercontent.com/mandiant/flare-vm/main/install.ps1',"$([Environment]::GetFolderPath("Desktop"))\install.ps1")
  1. Unblock the installation script:
1
Unblock-File .\install.ps1
  1. Run the installation script:
1
.\install.ps1
  1. Run the installation script:

    1
    .\install.ps1

    When prompted:

    • Press Enter when asked for password
    • In the GUI package selection popup, remove all items except:
      • 7zip.vm y
      • dependencywalker.vm y
      • die.vm y
      • explorersuite.vm y
      • ida.* y
      • idafree.vm y
      • pebear.vm y
      • peid.vm y
      • pestudio.vm y
      • regshot.vm
      • resourcehacker.vm
      • sysinternals.vm
      • upx.vm y
      • vcredist-all (maybe you can only find vcredist140) y
      • wireshark.vm y
      • x64dbg.* y

    Note: The VM will automatically reboot multiple times during installation to complete the setup process.

Kali Linux in Virtual Box

  1. Download Kali Linux pre-built ISO file from official website:
    https://www.kali.org/get-kali/#kali-virtual-machines
  2. Choose Machine -> Add in VirtualBox, then to the extracted vbox file navigate.
  3. Settings page of the VM access and resource cap increase as needed.
  4. A snapshot create, then it start.
  5. With kali:kali login.
  6. Set all you are! (sudo apt update)

create a snapshot of kali.

Configure Network

  1. For both VMs, configure network settings:

    • Navigate to Settings -> Network
  2. Configure Network Adapter 1:

    • Set “Attached to” as Internal Network
    • Use a common network name (e.g. cse434s) for both VMs
  3. Configure Network Adapter 2:

    • Enable the network adapter
    • Initially set “Attached to” as Not attached
    • When internet access is needed, change to NAT

for kali:

  • modify /etc/network/interfaces
  • add the following lines:
1
2
3
4
auto eth0
iface eth0 inet static
address 10.0.0.1
netmask 255.255.255.0
  • restart the network service:
1
sudo systemctl restart networking

for windows:
- modify the network adapter settings:
- set the ip address to 10.0.0.3
- set the subnet mask to 255.255.255.0
- set the dns server to 10.0.0.1

Test ping to each other.
Tip:

  • If windows can ping kali, but kali cannot ping windows, turn off firewall of windows.

Create a snapshot of kali and windows.

Share Folder

In kali/setting -> shared folder, add a shared folder.

  • Name: CSE434-Kali-Shared
  • Enable both “Auto-mount” and “Make Permanent”

The folder will be mounted in /media/sf_CSE434-Kali-Shared
And in windows, it will be mounted in \vboxsvr\CSE434-Kali-Shared

Tip:

  • Find the folder in Windows you can open a file explorer and then click this PC, then you can find the share folder

Create a snapshot of kali and windows.

Windows with Hyper-V

Check if your computer’s virtualization enabled:

  • Open task manager
  • Go to Performance tab
  • Check if Virtualization is enabled