Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lots of warnings on msfconsole startup #18401

Closed
COOLIRON2311 opened this issue Sep 26, 2023 · 2 comments · Fixed by #18443
Closed

Lots of warnings on msfconsole startup #18401

COOLIRON2311 opened this issue Sep 26, 2023 · 2 comments · Fixed by #18443
Labels

Comments

@COOLIRON2311
Copy link

COOLIRON2311 commented Sep 26, 2023

Steps to reproduce

How'd you do it?

  1. Install Metasploit from https://windows.metasploit.com/metasploitframework-latest.msi
  2. Run msfconsole

Were you following a specific guide/tutorial or reading documentation?

No

Expected behavior

No warnings in console

Current behavior

msf6 > D:/metasploit-framework/embedded/lib/ruby/gems/3.0.0/gems/hrr_rb_ssh-0.4.2/lib/hrr_rb_ssh/connection/channel/channel_type/session.rb:13: warning: alread
y initialized constant HrrRbSsh::Connection::Channel::ChannelType::Session::NAME                                                                               
D:/metasploit-framework/embedded/lib/ruby/gems/3.0.0/gems/hrr_rb_ssh-0.4.2/lib/hrr_rb_ssh/connection/channel/channel_type/session.rb:13: warning: previous defi
nition of NAME was here                                                                                                                                        
D:/metasploit-framework/embedded/lib/ruby/gems/3.0.0/gems/hrr_rb_ssh-0.4.2/lib/hrr_rb_ssh/connection/channel/channel_type/session.rb:13: warning: already initi
alized constant HrrRbSsh::Connection::Channel::ChannelType::Session::NAME                                                                                      
D:/metasploit-framework/embedded/lib/ruby/gems/3.0.0/gems/hrr_rb_ssh-0.4.2/lib/hrr_rb_ssh/connection/channel/channel_type/session.rb:13: warning: previous defi
nition of NAME was here                                                                                                                                        
D:/metasploit-framework/embedded/lib/ruby/gems/3.0.0/gems/hrr_rb_ssh-0.4.2/lib/hrr_rb_ssh/connection/channel/channel_type/session.rb:13: warning: already initi
alized constant HrrRbSsh::Connection::Channel::ChannelType::Session::NAME                                                                                      
D:/metasploit-framework/embedded/lib/ruby/gems/3.0.0/gems/hrr_rb_ssh-0.4.2/lib/hrr_rb_ssh/connection/channel/channel_type/session.rb:13: warning: previous defi
nition of NAME was here                                                                                                                                        
D:/metasploit-framework/embedded/lib/ruby/gems/3.0.0/gems/hrr_rb_ssh-0.4.2/lib/hrr_rb_ssh/connection/channel/channel_type/session.rb:13: warning: already initi
alized constant HrrRbSsh::Connection::Channel::ChannelType::Session::NAME                                                                                      
D:/metasploit-framework/embedded/lib/ruby/gems/3.0.0/gems/hrr_rb_ssh-0.4.2/lib/hrr_rb_ssh/connection/channel/channel_type/session.rb:13: warning: previous defi
nition of NAME was here                                                                                                                                        
D:/metasploit-framework/embedded/lib/ruby/gems/3.0.0/gems/hrr_rb_ssh-0.4.2/lib/hrr_rb_ssh/connection/channel/channel_type/session.rb:13: warning: already initi
alized constant HrrRbSsh::Connection::Channel::ChannelType::Session::NAME                                                                                      
D:/metasploit-framework/embedded/lib/ruby/gems/3.0.0/gems/hrr_rb_ssh-0.4.2/lib/hrr_rb_ssh/connection/channel/channel_type/session.rb:13: warning: previous defi
nition of NAME was here                                                                                                                                        
D:/metasploit-framework/embedded/lib/ruby/gems/3.0.0/gems/hrr_rb_ssh-0.4.2/lib/hrr_rb_ssh/connection/channel/channel_type/session.rb:13: warning: already initi
alized constant HrrRbSsh::Connection::Channel::ChannelType::Session::NAME                                                                                      
D:/metasploit-framework/embedded/lib/ruby/gems/3.0.0/gems/hrr_rb_ssh-0.4.2/lib/hrr_rb_ssh/connection/channel/channel_type/session.rb:13: warning: previous defi
nition of NAME was here                                                                                                                                        
D:/metasploit-framework/embedded/lib/ruby/gems/3.0.0/gems/hrr_rb_ssh-0.4.2/lib/hrr_rb_ssh/connection/channel/channel_type/session.rb:13: warning: already initi
alized constant HrrRbSsh::Connection::Channel::ChannelType::Session::NAME                                                                                      
D:/metasploit-framework/embedded/lib/ruby/gems/3.0.0/gems/hrr_rb_ssh-0.4.2/lib/hrr_rb_ssh/connection/channel/channel_type/session.rb:13: warning: previous defi
nition of NAME was here                                                                                                                                        
D:/metasploit-framework/embedded/lib/ruby/gems/3.0.0/gems/hrr_rb_ssh-0.4.2/lib/hrr_rb_ssh/connection/channel/channel_type/session.rb:13: warning: already initi
alized constant HrrRbSsh::Connection::Channel::ChannelType::Session::NAME                                                                                      
D:/metasploit-framework/embedded/lib/ruby/gems/3.0.0/gems/hrr_rb_ssh-0.4.2/lib/hrr_rb_ssh/connection/channel/channel_type/session.rb:13: warning: previous defi
nition of NAME was here                                                                                                                                        
D:/metasploit-framework/embedded/lib/ruby/gems/3.0.0/gems/hrr_rb_ssh-0.4.2/lib/hrr_rb_ssh/connection/channel/channel_type/session.rb:13: warning: already initi
alized constant HrrRbSsh::Connection::Channel::ChannelType::Session::NAME                                                                                      
D:/metasploit-framework/embedded/lib/ruby/gems/3.0.0/gems/hrr_rb_ssh-0.4.2/lib/hrr_rb_ssh/connection/channel/channel_type/session.rb:13: warning: previous defi
nition of NAME was here                                                                                                                                        
D:/metasploit-framework/embedded/lib/ruby/gems/3.0.0/gems/hrr_rb_ssh-0.4.2/lib/hrr_rb_ssh/connection/channel/channel_type/session.rb:13: warning: already initi
alized constant HrrRbSsh::Connection::Channel::ChannelType::Session::NAME                                                                                      
D:/metasploit-framework/embedded/lib/ruby/gems/3.0.0/gems/hrr_rb_ssh-0.4.2/lib/hrr_rb_ssh/connection/channel/channel_type/session.rb:13: warning: previous defi
nition of NAME was here                                                                                                                                        
D:/metasploit-framework/embedded/lib/ruby/gems/3.0.0/gems/hrr_rb_ssh-0.4.2/lib/hrr_rb_ssh/connection/channel/channel_type/session.rb:13: warning: already initi
alized constant HrrRbSsh::Connection::Channel::ChannelType::Session::NAME                                                                                      
D:/metasploit-framework/embedded/lib/ruby/gems/3.0.0/gems/hrr_rb_ssh-0.4.2/lib/hrr_rb_ssh/connection/channel/channel_type/session.rb:13: warning: previous defi
nition of NAME was here                                                                                                                                        
D:/metasploit-framework/embedded/lib/ruby/gems/3.0.0/gems/hrr_rb_ssh-0.4.2/lib/hrr_rb_ssh/connection/channel/channel_type/session.rb:13: warning: already initi
alized constant HrrRbSsh::Connection::Channel::ChannelType::Session::NAME                                                                                      
D:/metasploit-framework/embedded/lib/ruby/gems/3.0.0/gems/hrr_rb_ssh-0.4.2/lib/hrr_rb_ssh/connection/channel/channel_type/session.rb:13: warning: previous defi
nition of NAME was here                                                                                                                                        
D:/metasploit-framework/embedded/lib/ruby/gems/3.0.0/gems/hrr_rb_ssh-0.4.2/lib/hrr_rb_ssh/connection/channel/channel_type/session.rb:13: warning: already initi
alized constant HrrRbSsh::Connection::Channel::ChannelType::Session::NAME                                                                                      
D:/metasploit-framework/embedded/lib/ruby/gems/3.0.0/gems/hrr_rb_ssh-0.4.2/lib/hrr_rb_ssh/connection/channel/channel_type/session.rb:13: warning: previous defi
nition of NAME was here                                                                                                                                        
D:/metasploit-framework/embedded/lib/ruby/gems/3.0.0/gems/hrr_rb_ssh-0.4.2/lib/hrr_rb_ssh/connection/channel/channel_type/session.rb:13: warning: already initi
alized constant HrrRbSsh::Connection::Channel::ChannelType::Session::NAME                                                                                      
D:/metasploit-framework/embedded/lib/ruby/gems/3.0.0/gems/hrr_rb_ssh-0.4.2/lib/hrr_rb_ssh/connection/channel/channel_type/session.rb:13: warning: previous defi
nition of NAME was here                                                                                                                                        
D:/metasploit-framework/embedded/lib/ruby/gems/3.0.0/gems/hrr_rb_ssh-0.4.2/lib/hrr_rb_ssh/connection/channel/channel_type/session.rb:13: warning: already initi
alized constant HrrRbSsh::Connection::Channel::ChannelType::Session::NAME                                                                                      
D:/metasploit-framework/embedded/lib/ruby/gems/3.0.0/gems/hrr_rb_ssh-0.4.2/lib/hrr_rb_ssh/connection/channel/channel_type/session.rb:13: warning: previous defi
nition of NAME was here                                                                                                                                        
                                                                                                                                                               
msf6 >                                                                                                                                                   

OS

Windows 11 22H2

Metasploit version

Framework: 6.3.36-dev-aa2a8433fe8d2ccaa52a42dc63b50beeb66dd7bf
Console : 6.3.36-dev-aa2a8433fe8d2ccaa52a42dc63b50beeb66dd7bf

Additional Information

Can be fixed by commenting out line 13 in embedded/lib/ruby/gems/3.0.0/gems/hrr_rb_ssh-0.4.2/lib/hrr_rb_ssh/connection/channel/channel_type/session.rb:

NAME = 'session'
@Rovel
Copy link

Rovel commented Oct 10, 2023

hey I did a PR to try to fix it avoiding to spawn multiple connectons, I tried to setup the dev build on a Win11 but had trouble with the dependencies, If someone can test this PR I would be delighted to open it on the official upstream: Rovel#1

@adfoster-r7
Copy link
Contributor

I might be wrong - but I think the original issue reported by the user is unrelated to the avoiding to spawn multiple connectons issue that you're hitting @Rovel - feel free to raise a new issue if that's the case 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants