Skip to content

Commit

Permalink
move client to rex
Browse files Browse the repository at this point in the history
  • Loading branch information
zgoldman-r7 committed Jan 18, 2024
1 parent 1a4cc83 commit 1d9e74e
Show file tree
Hide file tree
Showing 15 changed files with 2,482 additions and 1,887 deletions.
2,350 changes: 2,350 additions & 0 deletions diff.txt

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions lib/metasploit/framework/login_scanner/mssql.rb
@@ -1,4 +1,4 @@
require 'metasploit/framework/mssql/client'
require 'rex/proto/mssql/client'
require 'metasploit/framework/login_scanner/base'
require 'metasploit/framework/login_scanner/rex_socket'
require 'metasploit/framework/login_scanner/ntlm'
Expand All @@ -14,7 +14,6 @@ class MSSQL
include Metasploit::Framework::LoginScanner::Base
include Metasploit::Framework::LoginScanner::RexSocket
include Metasploit::Framework::LoginScanner::NTLM
# include Metasploit::Framework::MSSQL::Client

DEFAULT_PORT = 1433
DEFAULT_REALM = 'WORKSTATION'
Expand Down Expand Up @@ -69,7 +68,7 @@ def attempt_login(credential)
}

begin
client = Metasploit::Framework::MSSQL::Client.new(framework_module, framework, host, port)
client = Rex::Proto::MSSQL::Client.new(framework_module, framework, host, port)
if client.mssql_login(credential.public, credential.private, '', credential.realm)
result_options[:status] = Metasploit::Model::Login::Status::SUCCESSFUL
else
Expand Down

0 comments on commit 1d9e74e

Please sign in to comment.