问题:

C:\Users\Administrator>msfconsole
Traceback (most recent call last):
7: from <internal:gem_prelude>:1:in `<internal:gem_prelude>'
6: from <internal:gem_prelude>:1:in `require'
5: from d:/metasploit-framework/embedded/lib/ruby/site_ruby/2.7.0/rubyge
ms.rb:1441:in `<top (required)>'
4: from d:/metasploit-framework/embedded/lib/ruby/site_ruby/2.7.0/rubyge
ms.rb:1441:in `require'
3: from d:/metasploit-framework/embedded/lib/ruby/site_ruby/2.7.0/rubyge
ms/core_ext/kernel_require.rb:8:in `<top (required)>'
2: from d:/metasploit-framework/embedded/lib/ruby/site_ruby/2.7.0/rubyge
ms/core_ext/kernel_require.rb:8:in `require'
1: from d:/metasploit-framework/embedded/lib/ruby/2.7.0/monitor.rb:90:in
`<top (required)>'
d:/metasploit-framework/embedded/lib/ruby/2.7.0/monitor.rb:90:in `require': inco
mpatible library version - d:/metasploit-framework/embedded/lib/ruby/2.7.0/x64-m
ingw32/monitor.so (LoadError)

C:\Users\Administrator>

 

原因:

win7不在受支持

 

解决方法:

更新到win10

 

参考链接:

https://github.com/rapid7/metasploit-framework/issues/11581