Add note that SMB v1 is not supported

This commit is contained in:
adfoster-r7 2022-03-02 17:53:20 +00:00
parent 53772fa366
commit 6f2a7d6167
No known key found for this signature in database
GPG Key ID: 3BD4FA3818818F04
2 changed files with 14 additions and 2 deletions

View File

@ -51,6 +51,18 @@ module Msf::Exploit::Remote::SMB::Relay::NTLM
response
end
#
# Handle an SMB version 1 message.
#
# @param [String] raw_request The bytes of the entire SMB request.
# @param [RubySMB::SMB1::SMBHeader] header The request header.
# @return [RubySMB::GenericPacket]
def handle_smb1(raw_request, header)
_port, ip_address = ::Socket::unpack_sockaddr_in(getpeername)
logger.print_warning("Cannot relay request from #{ip_address}. The SMB1 #{::RubySMB::SMB1::Commands.name(header.command)} command is not supported - https://github.com/rapid7/metasploit-framework/issues/16261")
raise NotImplementedError
end
def do_session_setup_smb2(request, session)
# TODO: Add shared helper for grabbing session lookups
session_id = request.smb2_header.session_id

View File

@ -34,8 +34,8 @@ class MetasploitModule < Msf::Auxiliary
'Author' => [
'hdm', # Author of original module
'Spencer McIntyre', # Creator of RubySMB::Server
'agalway-r7', # Port of existing module to use RUBYSMB::Server
'sjanusz-r7', # Port of existing module to use RUBYSMB::Server
'agalway-r7', # Port of existing module to use RubySMB::Server
'sjanusz-r7', # Port of existing module to use RubySMB::Server
],
'License' => MSF_LICENSE,
'Actions' => [[ 'Capture', { 'Description' => 'Run SMB capture server' } ]],