Skip to content

Commit

Permalink
Land #18443, Fix reverse ssh handler warnings on windows bootup
Browse files Browse the repository at this point in the history
  • Loading branch information
cgranleese-r7 committed Oct 13, 2023
2 parents 2163c51 + 0c40794 commit 0343365
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 0343365

Please sign in to comment.