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

Fix reverse ssh handler warnings on windows bootup #18443

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/msf/core/handler/reverse_ssh.rb
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ def wfs_delay
def default_version_string
default_version_string = 'SSH-2.0-OpenSSH_5.3p1'

# The current SSH server implementation does not support OpenSSL 3
return default_version_string if OpenSSL::OPENSSL_LIBRARY_VERSION.start_with? 'OpenSSL 3'
# The current SSH server implementation does not support OpenSSL 3 or windows
return default_version_string if OpenSSL::OPENSSL_LIBRARY_VERSION.start_with?('OpenSSL 3') || ::Gem.win_platform?

require 'rex/proto/ssh/connection'
Rex::Proto::Ssh::Connection.default_options['local_version']
Expand Down