Open adfoster-r7 opened 3 days ago
Code in question:
Evaluating the resolve expression:
msf6 > irb -e 'puts Win32::Resolv.get_resolv_info.inspect'
[["localdomain"], ["192.168.123.2"]]
I assume the orginal code was inspired by this, but it needs some extra tweaks:
https://github.com/ruby/ruby/blob/532af89e3b5b78dd3a6fe29c6cc64ad1b073afe2/lib/resolv.rb#L1010
It looks like framework's begin/rescue block needs to be expanded to include the window's section too too, there's only a wrapping begin/rescue around the non-windows scenario
I happened to hit this today while testing a PR.
Installed Metasploit framework omnibus installer onto a VM without internet accesss and opened msfconsole:
Mine was on a WM with internet access while installing Metasploit-Framework via the latest omnibus installer, happened on latest but not on the older build (metasploit-framework-6.4.27-20240915103549-1rapid7-1-x64.msi
)
I ran into this this morning and have opened a pull request #19474 with a potential solution.
Steps to reproduce
Installed Metasploit framework omnibus installer onto a VM without internet accesss and opened msfconsole:
Were you following a specific guide/tutorial or reading documentation?
No
Expected behavior
No crash; potentially a warning - but msfconsole should still open
Current behavior
Full crash
Metasploit version