You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed metasploit on Windows 10 following the installation guide provided on github. However I have a problem with the database:
Running msfconsole and then db_status I get: [-] No database driver installed.
And if I run msfdb init, I get:
Traceback (most recent call last):
2: from C:/metasploit-framework/bin/../embedded/framework/msfdb:15:in `<main>'
1: from C:/metasploit-framework/embedded/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
C:/metasploit-framework/embedded/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require': cannot load such file -- pg (LoadError)
6: from C:/metasploit-framework/bin/../embedded/framework/msfdb:15:in `<main>'
5: from C:/metasploit-framework/embedded/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:156:in `require'
4: from C:/metasploit-framework/embedded/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:168:in `rescue in require'
3: from C:/metasploit-framework/embedded/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:168:in `require'
2: from C:/metasploit-framework/embedded/lib/ruby/gems/2.7.0/gems/pg-1.2.3-x64-mingw32/lib/pg.rb:5:in `<top (required)>'
1: from C:/metasploit-framework/embedded/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
C:/metasploit-framework/embedded/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require': cannot load such file -- pg_ext (LoadError)
12: from C:/metasploit-framework/bin/../embedded/framework/msfdb:15:in `<main>'
11: from C:/metasploit-framework/embedded/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:156:in `require'
10: from C:/metasploit-framework/embedded/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:168:in `rescue in require'
9: from C:/metasploit-framework/embedded/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:168:in `require'
8: from C:/metasploit-framework/embedded/lib/ruby/gems/2.7.0/gems/pg-1.2.3-x64-mingw32/lib/pg.rb:4:in `<top (required)>'
7: from C:/metasploit-framework/embedded/lib/ruby/gems/2.7.0/gems/pg-1.2.3-x64-mingw32/lib/pg.rb:26:in `rescue in <top (required)>'
6: from C:/metasploit-framework/embedded/lib/ruby/gems/2.7.0/gems/pg-1.2.3-x64-mingw32/lib/pg.rb:15:in `block in <top (required)>'
5: from C:/metasploit-framework/embedded/lib/ruby/site_ruby/2.7.0/ruby_installer/runtime/singleton.rb:12:in `add_dll_directory'
4: from C:/metasploit-framework/embedded/lib/ruby/site_ruby/2.7.0/ruby_installer/runtime/singleton.rb:12:in `new'
3: from C:/metasploit-framework/embedded/lib/ruby/site_ruby/2.7.0/ruby_installer/runtime/dll_directory.rb:67:in `initialize'
2: from C:/metasploit-framework/embedded/lib/ruby/gems/2.7.0/gems/pg-1.2.3-x64-mingw32/lib/pg.rb:27:in `block in <top (required)>'
1: from C:/metasploit-framework/embedded/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
C:/metasploit-framework/embedded/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require': 127: The specified procedure could not be found. - C:/metasploit-framework/embedded/lib/ruby/gems/2.7.0/gems/pg-1.2.3-x64-mingw32/lib/2.7/pg_ext.so (LoadError)
10: from C:/metasploit-framework/bin/../embedded/framework/msfdb:15:in `<main>'
9: from C:/metasploit-framework/embedded/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:156:in `require'
8: from C:/metasploit-framework/embedded/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:168:in `rescue in require'
7: from C:/metasploit-framework/embedded/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:168:in `require'
6: from C:/metasploit-framework/embedded/lib/ruby/gems/2.7.0/gems/pg-1.2.3-x64-mingw32/lib/pg.rb:4:in `<top (required)>'
5: from C:/metasploit-framework/embedded/lib/ruby/gems/2.7.0/gems/pg-1.2.3-x64-mingw32/lib/pg.rb:26:in `rescue in <top (required)>'
4: from C:/metasploit-framework/embedded/lib/ruby/gems/2.7.0/gems/pg-1.2.3-x64-mingw32/lib/pg.rb:13:in `block in <top (required)>'
3: from C:/metasploit-framework/embedded/lib/ruby/gems/2.7.0/gems/pg-1.2.3-x64-mingw32/lib/pg.rb:19:in `rescue in block in <top (required)>'
2: from C:/metasploit-framework/embedded/lib/ruby/gems/2.7.0/gems/pg-1.2.3-x64-mingw32/lib/pg.rb:27:in `block in <top (required)>'
1: from C:/metasploit-framework/embedded/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
C:/metasploit-framework/embedded/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require': 127: The specified procedure could not be found. - C:/metasploit-framework/embedded/lib/ruby/gems/2.7.0/gems/pg-1.2.3-x64-mingw32/lib/2.7/pg_ext.so (LoadError)
Can anyone help me please?
Metasploit Version : Framework Version: 6.0.48-dev-xxxx
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I installed metasploit on Windows 10 following the installation guide provided on github. However I have a problem with the database:
Running msfconsole and then db_status I get:
[-] No database driver installed.
And if I run msfdb init, I get:
Can anyone help me please?
Metasploit Version : Framework Version: 6.0.48-dev-xxxx
Beta Was this translation helpful? Give feedback.
All reactions