windows安装metasploit,运行报错处理

最近给几个windows 11的系统安装了metasploit,其中有几个在启动msf时报错
D:/metasploit-framework/embedded/framework/1ib/net/dns/resolver.rb:345: in 'nameservers=': String, Wrong arguent format, neither String, Array nor IPAddr (ResolverArgumentError)

看起来像是dnsserver的问题,检查了配置,网上搜了下解决方案没搜到解决办法。

考虑到安装的这几个msf打算使用的功能不多,本着

解决不了问题就解决提出问题的人

的思想,根据报错信息找到报错的代码

D:\metasploit-framework\embedded\framework\lib\net\dns\resolver.rb

注释掉抛出异常的代码

启动正常。

可能后面会影响一些功能,至少目前我需要使用的功能测试都使用正常,算暂时解决问题……

posted @ 2024-05-11 15:42  pill0w  阅读(416)  评论(0)    收藏  举报