Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fails to install when running Vagrant WinRM error #59

Closed
andyman212 opened this issue Dec 8, 2016 · 12 comments
Closed

Fails to install when running Vagrant WinRM error #59

andyman212 opened this issue Dec 8, 2016 · 12 comments

Comments

@andyman212
Copy link

Run a couple of times elevated Powershell Any Ideas please

==> default: C:\Windows\system32>rd /s /q C:\axis2
==> default: Running provisioner: shell...
default: Running: inline PowerShell script
==> default: Running provisioner: shell...
default: Running: scripts/installs/install_backdoors.bat as c:\tmp\vagrant-shell.bat
==> default: C:\Windows\system32>copy C:\vagrant\resources\backdoors\caidao.asp "C:\inetpub\wwwroot"
==> default:
==> default: 1 file(s) copied.
==> default:
==> default: C:\Windows\system32>copy C:\vagrant\resources\backdoors\mma.php "C:\wamp\www"
==> default: 1 file(s) copied.
==> default:
==> default: C:\Windows\system32>copy C:\vagrant\resources\backdoors\meterpreter.php "C:\wamp\www"
==> default:
==> default: The system cannot find the file specified.
The following WinRM command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

c:\tmp\vagrant-shell.bat

Stdout from the command:

Stderr from the command:

@jbarnett-r7
Copy link
Contributor

It looks like the C:\vagrant\resources\backdoors\meterpreter.php file couldn't be found. Can you verify that file is in the cloned GitHub repo for Metasploitable3? Also, can you manually log in to Metasploitable3 and verify you can access that file.

@andyman212
Copy link
Author

Thanks for your comment, Yes Cloned Yesterday from Github repo

Cant start Metasplotable3 get this error

image

@jbarnett-r7
Copy link
Contributor

Interesting. I've seen a few people reporting that but have never seen it myself. What version of VirtualBox, packer, and Vagrant are you using?

@andyman212
Copy link
Author

Vagrant 1.9.1
Packer 0.12.0 x64
virtual box 5.1.10

@andyman212
Copy link
Author

I have cloned a fresh copy of the files from Github and after running Vagrant up it now completes and does not error still same error when trying to power on the VM. This is how the files look not sure if this is correct.

image

@jbarnett-r7
Copy link
Contributor

Thanks for that info. I'm out of date on a few of those. I'll update and rebuild to see if one of them broke something.

@jbarnett-r7
Copy link
Contributor

I tried with a few different version combinations and was not able to reproduce the issue with the VM not starting up. I'm on OSX, though. It looks like you're on Windows, which version specifically?

@Razack-git
Copy link

i have the same issue on kali linux with all required software from the repo

@andyman212
Copy link
Author

Working now after removing from virtual box and adding again the location it was pulling from was

C:\Users\Username\AppData\Local\Droid4X\vms

The Working VM was in

C:\Users\Username\VirtualBox VMs

Exported as OVF and imported to VMware only get a blank screen in VMware.

Thanks

@Razack-git
Copy link

On Debian is the Vagrant Plugin winrm not included, manual install with:

vagrant plugin install winrm winrm-fs

source: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=780036

@jbarnett-r7
Copy link
Contributor

@andyman212 Do you think there was a change in default storage location and that is why the error is popping up? Is this specific to Windows?

@vkrepos
Copy link

vkrepos commented Feb 26, 2017

I my case meterpreter.php was deleted by antivirus. :)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants