Closed techvio-dev closed 3 years ago
Confirmed on master.
# ./msfconsole
[!] The following modules could not be loaded!..-
[!] /root/Desktop/metasploit-framework/modules/auxiliary/server/http_proxy.rb
[!] /root/Desktop/metasploit-framework/modules/auxiliary/gather/office365userenum.py
[!] Please see /root/.msf4/logs/framework.log for details.
+-------------------------------------------------+
| _ |
| / \ |
| /|oo \ M E T A S P L O I T |
| (_| /_) |
| _`@/_ \ _ F R A M E W O R K |
| | | \ \\ |
| | (*) | \ )) Boston, MA, USA |
| ______ |__U__| / \// |
| / FIDO \ _//|| _\ / FidoNet 1:617/1337 |
| (________) (_/(_|(____/ |
| (jm) |
+-------------------------------------------------+
=[ metasploit v6.0.53-dev-0226be575c ]
+ -- --=[ 2169 exploits - 1145 auxiliary - 367 post ]
+ -- --=[ 596 payloads - 45 encoders - 10 nops ]
+ -- --=[ 8 evasion ]
Metasploit tip: You can use help to view all
available commands
msf6 > use auxiliary/scanner/ssh/eaton_xpert_backdoor
[-] Failed to load module: NameError uninitialized constant Net::SSH
msf6 >
@techvio1 Thanks for raising an issue issue; Would you mind applying this patch locally and verifying that it would work for you? https://github.com/rapid7/metasploit-framework/pull/15420
@adfoster-r7 it's working now thank you so much for your help and your time for finding a fix
Steps to reproduce
How'd you do it?
Expected behavior
What should happen?
it should not having errors at booting
Current behavior
What happens instead?
showing the error [07/10/2021 20:54:57] [e(0)] core: /usr/share/metasploit-framework/modules/auxiliary/scanner/ssh/eaton_xpert_backdoor.rb failed to load - NameError uninitialized constant Net::SSH
Metasploit version
Get this with the
version
command in msfconsole (orgit log -1 --pretty=oneline
for a source install).6.0.52-dev
Additional Information
If your version is less than
5.0.96
, please update to the latest version and ensure your issue is still present.If the issue is encountered within
msfconsole
, please run thedebug
command using the instructions below. If the issue is encountered outisdemsfconsole
, or the issue causesmsfconsole
to crash on startup, please delete this section.Module/Datastore
The following global/module datastore, and database setup was configured before the issue occurred:
Collapse
``` [framework/core] loglevel=3 ```History
The following commands were ran during the session and before this issue occurred:
Collapse
``` 114 version 115 set loglevel 3 116 debug ```Framework Errors
The following framework errors occurred before the issue occurred:
Collapse
``` [07/10/2021 17:53:40] [e(0)] core: /usr/share/metasploit-framework/modules/auxiliary/scanner/msmail/onprem_enum.go failed to load - LoadError Failed to execute external Go module. Please ensure you have Go installed on your environment. [07/10/2021 17:53:40] [e(0)] core: /usr/share/metasploit-framework/modules/auxiliary/scanner/msmail/host_id.go failed to load - LoadError Failed to execute external Go module. Please ensure you have Go installed on your environment. [07/10/2021 17:53:40] [e(0)] core: /usr/share/metasploit-framework/modules/auxiliary/scanner/msmail/exchange_enum.go failed to load - LoadError Failed to execute external Go module. Please ensure you have Go installed on your environment. [07/10/2021 18:21:05] [e(0)] core: /usr/share/metasploit-framework/modules/auxiliary/scanner/ssh/eaton_xpert_backdoor.rb failed to load - NameError uninitialized constant Net::SSH [07/10/2021 18:50:05] [e(0)] core: /usr/share/metasploit-framework/modules/auxiliary/scanner/ssh/eaton_xpert_backdoor.rb failed to load - SyntaxError /usr/share/metasploit-framework/modules/auxiliary/scanner/ssh/eaton_xpert_backdoor.rb:7: syntax error, unexpected '<' ^ /usr/share/metasploit-framework/modules/auxiliary/scanner/ssh/eaton_xpert_backdoor.rb:8: syntax error, unexpected '<' ^ /usr/share/metasploit-framework/modules/auxiliary/scanner/ssh/eaton_xpert_backdoor.rb:8: syntax error, unexpected '<'Web Service Errors
The following web service errors occurred before the issue occurred:
Collapse
``` msf-ws.log does not exist. ```Framework Logs
The following framework logs were recorded before the issue occurred:
Collapse
``` [07/09/2021 22:11:34] [e(0)] core: Exploit failed (unix/ftp/proftpd_modcopy_exec) - Msf::MissingPayloadError A payload has not been selected. [07/09/2021 22:14:57] [e(0)] core: Exploit failed (unix/ftp/proftpd_modcopy_exec) - Msf::MissingPayloadError A payload has not been selected. [07/09/2021 22:16:24] [d(0)] core: Module generic/custom is incompatible with unix/ftp/proftpd_modcopy_exec for PayloadType: limiter was cmd [07/09/2021 22:16:24] [d(0)] core: Module generic/shell_bind_tcp is incompatible with unix/ftp/proftpd_modcopy_exec for PayloadType: limiter was cmd [07/09/2021 22:16:24] [d(0)] core: Module generic/shell_reverse_tcp is incompatible with unix/ftp/proftpd_modcopy_exec for PayloadType: limiter was cmd [07/09/2021 22:20:05] [d(0)] core: HistoryManager.pop_context name: :msfconsole [07/10/2021 17:52:29] [e(0)] core: Failed to connect to the database: No database YAML file [07/10/2021 17:52:46] [e(0)] core: /usr/share/metasploit-framework/modules/auxiliary/scanner/ssh/eaton_xpert_backdoor.rb failed to load - NameError uninitialized constant Net::SSH [07/10/2021 17:53:40] [e(0)] core: /usr/share/metasploit-framework/modules/auxiliary/scanner/msmail/onprem_enum.go failed to load - LoadError Failed to execute external Go module. Please ensure you have Go installed on your environment. [07/10/2021 17:53:40] [e(0)] core: /usr/share/metasploit-framework/modules/auxiliary/scanner/msmail/host_id.go failed to load - LoadError Failed to execute external Go module. Please ensure you have Go installed on your environment. [07/10/2021 17:53:40] [e(0)] core: /usr/share/metasploit-framework/modules/auxiliary/scanner/msmail/exchange_enum.go failed to load - LoadError Failed to execute external Go module. Please ensure you have Go installed on your environment. [07/10/2021 17:53:47] [d(0)] core: HistoryManager.push_context name: :msfconsole [07/10/2021 18:01:42] [d(0)] core: HistoryManager.pop_context name: :msfconsole [07/10/2021 18:21:05] [e(0)] core: /usr/share/metasploit-framework/modules/auxiliary/scanner/ssh/eaton_xpert_backdoor.rb failed to load - NameError uninitialized constant Net::SSH [07/10/2021 18:21:25] [d(0)] core: HistoryManager.push_context name: :msfconsole [07/10/2021 18:21:39] [d(0)] core: HistoryManager.pop_context name: :msfconsole [07/10/2021 18:50:05] [e(0)] core: /usr/share/metasploit-framework/modules/auxiliary/scanner/ssh/eaton_xpert_backdoor.rb failed to load - SyntaxError /usr/share/metasploit-framework/modules/auxiliary/scanner/ssh/eaton_xpert_backdoor.rb:7: syntax error, unexpected '<' ^ /usr/share/metasploit-framework/modules/auxiliary/scanner/ssh/eaton_xpert_backdoor.rb:8: syntax error, unexpected '<' ^ /usr/share/metasploit-framework/modules/auxiliary/scanner/ssh/eaton_xpert_backdoor.rb:8: syntax error, unexpected '<'Web Service Logs
The following web service logs were recorded before the issue occurred:
Collapse
``` msf-ws.log does not exist. ```Version/Install
The versions and install method of your Metasploit setup:
Collapse
``` Framework: 6.0.52-dev Ruby: ruby 2.7.3p183 (2021-04-05 revision 6847ee089d) [x86_64-linux-gnu] Install Root: /usr/share/metasploit-framework Session Type: Connected to msf. Connection type: postgresql. Install Method: Other - Please specify ```