Metasploit-framework: Install location issues

Created on 13 Dec 2019  ·  12Comments  ·  Source: rapid7/metasploit-framework

Steps to reproduce

  1. I get the .msi file to install
  2. chage the install way,I change the default location C:\ to D:\
  3. However ,the metasploit homepath not in D:\,it's in F:\
    and in cmd run:
    F:>msfconsole
    F:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/rex-core-0.1.13/lib/rex/compat.rb:376: warning: Win32API is deprecated after Ruby 1.9.1; use fiddle directly instead
    [-] *
    [-] * WARNING: No database support: No database YAML file
    [-] *

Metasploit version:v5.0.60

I installed Metasploit with:

use windows installer :https://windows.metasploit.com/metasploitframework-latest.msi

OS

Windows 10 17763

Stale

All 12 comments

I'm seeing this as well. I set the install path to C:\metasploit and it installed in D:\metasploit-framework.

metasploit v5.0.67-dev-cd566846dd13143f283f1f1b713debd30d31d761

Version 10.0.19536 Build 19536

how to solve tis os : windows 10
C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:274:in `require': cannot load such file -- expect (LoadError)

I have same issus! @Vishnu8808appu

Try reinstalling with admin rights @Vishnu8808appu

Same issue here ,any news?

@k3d4ns Not yet. I instaled Linux instead.It comes with Metasploit Pre-installed!😊😊😁

Solved this way :

It's a warning line in file (Win32API.rb)

Open your metasploit install directory and search for the file (Win32API.rb)
i'm writing from my phone so i can't give you the full file path

Now edit the file with any editor (np++, vscode..) and you'll fine a warning command before the require command
Like this:
warn "Win32API is deprecated after Ruby 1.9.1; use fiddle directly instead", uplevel: 2
Put # before (warn) to turn it into a comment line instead of a warning command line
So it'll be like that :

warn "Win32API is deprecated after Ruby 1.9.1; use fiddle directly instead", uplevel: 2

Save and try again
The file is here :
https://github.com/ruby/ruby/blob/master/ext/win32/lib/Win32API.rb

@k3d4ns Commenting out an issue instead of fixing it is terrible practice...

Just comment out the line: warn "Win32API is deprecated after Ruby 1.9.1; use fiddle directly instead", uplevel: 2 in Win32API.rb file

Scrambled-Egg notifications@github.com于2020年10月6日 周二14:33写道:

>
>

Just comment out the line: warn "Win32API is deprecated after Ruby 1.9.1;
use fiddle directly instead", uplevel: 2 in Win32API.rb file


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/rapid7/metasploit-framework/issues/12716#issuecomment-704061737,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFC5RPB3ZBAZHITL7X3QVETSJK22DANCNFSM4J2IVCKQ
.

tks.

Hi!

This issue has been left open with no activity for a while now.

We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 30 days since the last update here.
If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!

As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request.

Hi again!

It’s been 60 days since anything happened on this issue, so we are going to close it.
Please keep in mind that I’m only a robot, so if I’ve closed this issue in error please feel free to reopen this issue or create a new one if you need anything else.

As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request.

Was this page helpful?
0 / 5 - 0 ratings