msfconsole 加载报错相关

报错信息:

root@promote:/# msfconsole 
[!] The following modules could not be loaded!..\
[!]     /usr/share/metasploit-framework/modules/auxiliary/scanner/msmail/exchange_enum.go
[!]     /usr/share/metasploit-framework/modules/auxiliary/scanner/msmail/host_id.go
[!]     /usr/share/metasploit-framework/modules/auxiliary/scanner/msmail/onprem_enum.go
[!] Please see /root/.msf4/logs/framework.log for details.

根据提示查看日志:

[09/20/2021 22:19:58] [e(0)] core: /usr/share/metasploit-framework/modules/auxil
iary/scanner/msmail/exchange_enum.go failed to load - LoadError Failed to execut
e external Go module. Please ensure you have Go installed on your environment.
[09/20/2021 22:19:58] [e(0)] core: /usr/share/metasploit-framework/modules/auxil
iary/scanner/msmail/host_id.go failed to load - LoadError Failed to execute exte
rnal Go module. Please ensure you have Go installed on your environment.
[09/20/2021 22:19:58] [e(0)] core: /usr/share/metasploit-framework/modules/auxil
iary/scanner/msmail/onprem_enum.go failed to load - LoadError Failed to execute 
external Go module. Please ensure you have Go installed on your environment.

解决方法:

apt install gccgo-go

 

上一篇:基本概念之Spring家族详解


下一篇:.Net介绍 第一行代码