rapid7 / metasploitable3

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

[HELP] Can't build ps1 #615

Open TheOppaiDragon opened 7 months ago

TheOppaiDragon commented 7 months ago

Issue Description

Can't build ps1. I'm following a tutorial on YT how to install metasploitable3 for VirtualBox, but in this step i can't build ps1,

Host System

Command Output

.\build.ps1

Compatible version of VirtualBox found.

Cannot convert value "Packer v1" to type "System.Int32". Error: "Input string was not in a correct format."
At D:\VirtualBox\Metasploitable-3-Linux\metasploitable3-master\build.ps1:26 char:12
+         If([INT]$actualVersion[$i] -gt [INT]$expectedVersion[$i]) {
+            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : InvalidCastFromStringToInteger
TheOppaiDragon commented 7 months ago

I solved the above error with the help of blackboxai. now when it reaches the end of the installation the file is not created and it gives me a new error:

==> Builds finished but no artifacts were created.
Error building the Vagrant box using Packer. Please check the output above for any error messages.
At D:\VirtualBox\Metasploitable-3-Linux\metasploitable3-master\build.ps1:165 char:10
+          throw "Error building the Vagrant box using Packer. Please c ...
+          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Error building ...error messages.:String) [], Runti
   meException
    + FullyQualifiedErrorId : Error building the Vagrant box using Packer. Please check the output a
   bove for any error messages
riadmmdli commented 3 months ago

did you find solution? Im encountering with the same issue.