rapid7 / metasploitable3

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

SSH hang on build.sh script #71

Closed derhornspieler closed 7 years ago

derhornspieler commented 7 years ago

Issue Description

SSH Timing Out

Host System

MacOS Sierra 10.12.2 (16C67) Version 5.1.10 r112026 Packer 0.12.1 Vagrant 1.9.1

Command Output

Using ./build provided script.

aegis58:metasploitable3 jamesrudisill$ ./build_win2008.sh Compatible version of VirtualBox found. Compatible version of packer was found. Correct version of vagrant was found. Compatible version of vagrant-reload plugin was found. All requirements found. Proceeding... Building the Vagrant box... virtualbox-iso output will be in this color.

==> virtualbox-iso: Downloading or copying Guest additions virtualbox-iso: Downloading or copying: file:///Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso ==> virtualbox-iso: Downloading or copying ISO virtualbox-iso: Downloading or copying: http://download.microsoft.com/download/7/5/E/75EC4E54-5B02-42D6-8879-D8D3A25FBEF7/7601.17514.101119-1850_x64fre_server_eval_en-us-GRMSXEVAL_EN_DVD.iso ==> virtualbox-iso: Creating floppy disk... virtualbox-iso: Copying files flatly from floppy_files virtualbox-iso: Copying file: ./answer_files/2008_r2/Autounattend.xml virtualbox-iso: Copying file: ./scripts/configs/microsoft-updates.bat virtualbox-iso: Copying file: ./scripts/configs/win-updates.ps1 virtualbox-iso: Copying file: ./scripts/installs/openssh.ps1 virtualbox-iso: Copying file: ./resources/certs/oracle-cert.cer virtualbox-iso: Copying file: ./resources/certs/gdig2.crt virtualbox-iso: Copying file: ./resources/certs/comodorsadomainvalidationsecureserverca.crt virtualbox-iso: Copying file: ./resources/certs/comodorsacertificationauthority.crt virtualbox-iso: Copying file: ./resources/certs/addtrust_external_ca.cer virtualbox-iso: Copying file: ./resources/certs/baltimore_ca.cer virtualbox-iso: Copying file: ./resources/certs/digicert.cer virtualbox-iso: Copying file: ./resources/certs/equifax.cer virtualbox-iso: Copying file: ./resources/certs/globalsign.cer virtualbox-iso: Copying file: ./resources/certs/gte_cybertrust.cer virtualbox-iso: Copying file: ./resources/certs/microsoft_root_2011.cer virtualbox-iso: Copying file: ./resources/certs/thawte_primary_root.cer virtualbox-iso: Copying file: ./resources/certs/utn-userfirst.cer virtualbox-iso: Done copying files from floppy_files virtualbox-iso: Collecting paths from floppy_dirs virtualbox-iso: Resulting paths from floppy_dirs : [] virtualbox-iso: Done copying paths from floppy_dirs ==> virtualbox-iso: Creating virtual machine... ==> virtualbox-iso: Creating hard drive... ==> virtualbox-iso: Attaching floppy disk... ==> virtualbox-iso: Creating forwarded port mapping for communicator (SSH, WinRM, etc) (host port 2883) ==> virtualbox-iso: Executing custom VBoxManage commands... virtualbox-iso: Executing: modifyvm packer-virtualbox-iso-1481930552 --memory 4096 virtualbox-iso: Executing: modifyvm packer-virtualbox-iso-1481930552 --cpus 2 ==> virtualbox-iso: Starting the virtual machine... virtualbox-iso: The VM will be run headless, without a GUI. If you want to virtualbox-iso: view the screen of the VM, connect via VRDP without a password to virtualbox-iso: 127.0.0.1:5992 ==> virtualbox-iso: Waiting 2m0s for boot... ==> virtualbox-iso: Typing the boot command... ==> virtualbox-iso: Waiting for SSH to become available...

derhornspieler commented 7 years ago

UPDATE Go into Windows Server VM

Go to C:\Program Files\OpenSSH\ and manually run ssh-agent.exe

script resumed afterwards.