rapid7 / metasploitable3

Metasploitable3 is a VM that is built from the ground up with a large amount of security vulnerabilities.
Other
4.78k stars 1.15k forks source link

Build Issue #558

Open Buluc-Chabtan opened 3 years ago

Buluc-Chabtan commented 3 years ago

Issue Description

Please check the General Issues section in the wiki before you submit the issue. If you didn't find your issue mentioned, please give a thorough description of the issue you're seeing. Also, please be sure to include any troubleshooting steps that you've already attempted.

Host System

Command Output

PS C:\Users\joliv\OneDrive\Documents\metasploitable3-master> .\build.ps1 windows2008

Compatible version of VirtualBox found. Compatible version of Packer found. Compatible version of Vagrant found. Compatible version of vagrant-reload plugin found. All requirements found. Proceeding... You cannot call a method on a null-valued expression. At C:\Users\joliv\OneDrive\Documents\metasploitable3-master\build.ps1:142 char:5

sachinjung commented 2 years ago
  1. Install Vagrant and Vagrant VMware Plugins
  2. Install Packer
  3. Install VMware Workstation Pro
  4. Download the Metasploitable3 github repository as zip
  5. Extract the Metasploitable-Master zip where you want to put your machine
  6. Run administrative command prompt and go to metasploitable3-master
  7. Run the following commands

Microsoft Windows [Version 10.0.19042.1466] (c) Microsoft Corporation. All rights reserved.

C:\Windows\system32>cd \Users\mustb\Documents\Virtual Machines\Mabl3

C:\Users\mustb\Documents\Virtual Machines\Mabl3>dir Volume in drive C has no label. Volume Serial Number is CE73-3024

Directory of C:\Users\mustb\Documents\Virtual Machines\Mabl3

01/19/2022 09:07 PM

. 01/19/2022 09:07 PM .. 01/10/2022 10:21 AM .github 01/10/2022 10:21 AM 105 .gitignore 01/19/2022 09:07 PM .vagrant 01/10/2022 10:21 AM 6,640 build.ps1 01/10/2022 10:21 AM 7,486 build.sh 01/10/2022 10:21 AM chef 01/10/2022 10:21 AM 1,783 COPYING 01/10/2022 10:21 AM iso 01/10/2022 10:21 AM 3,601 LICENSE 01/10/2022 10:21 AM packer 01/10/2022 10:21 AM 6,006 README.md 01/10/2022 10:21 AM resources 01/10/2022 10:21 AM scripts 01/10/2022 10:21 AM 2,297 Vagrantfile 01/10/2022 10:21 AM versions 7 File(s) 27,918 bytes 10 Dir(s) 114,240,036,864 bytes free

C:\Users\mustb\Documents\Virtual Machines\Mabl3>vagrant up --provider vmware_desktop This process will pull the vmware image from internet box repository If both box are downloaded successfully move to next step

C:\Users\mustb\Documents\Virtual Machines\Mabl3>vagrant up This will start the vagrant box

C:\Users\mustb\Documents\Virtual Machines\Mabl3>vagrant provision This will provision the virtual machine

Now, Open VMware Workstation Open virtual machine inside the metasploitable3-master.vagrant\machines\win2k8 or ub1404\vmware_desktop\45a3b355-f450-4e0d-83f2-18f5bea2ad60 (some random folder)\metasploitable3-win2k8.vmx

Export the virtual machine as OVA if you like or make a copy

Do same for Ubuntu 14.04 virtual machine as well