Skip to content

Commit 100ac4b

Browse files
committed
Remove unneeded code
1 parent 3ef78ec commit 100ac4b

File tree

2 files changed

+0
-18
lines changed
  • lib
    • metasploit/framework/login_scanner
    • msf/core/exploit/remote/smb/relay/ntlm/target/mssql

2 files changed

+0
-18
lines changed

lib/metasploit/framework/login_scanner/mssql.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ class MSSQL
2929
# @see Msf::Exploit::Remote::AuthOption::MSSQL_OPTIONS
3030
attr_accessor :auth
3131

32-
validates :auth,
33-
inclusion: { in: Msf::Exploit::Remote::AuthOption::MSSQL_OPTIONS }
34-
3532
validates :auth,
3633
inclusion: { in: Msf::Exploit::Remote::AuthOption::MSSQL_OPTIONS }
3734

lib/msf/core/exploit/remote/smb/relay/ntlm/target/mssql/client.rb

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -74,21 +74,6 @@ def relay_ntlmssp_type3(client_type3_msg)
7474
Msf::Exploit::Remote::SMB::Relay::NTLM::Target::RelayResult.new(nt_status: nt_status)
7575
end
7676

77-
# Instantiate a Rex::Proto::LDAP::Client that can be used as a normal LDAP client.
78-
# This is mainly used to setup an LDAP session.
79-
#
80-
# @return [Rex::Proto::LDAP::Client]
81-
def create_ldap_client
82-
client = Rex::Proto::LDAP::Client.new(
83-
host: @target.ip,
84-
port: @target.port,
85-
auth: { method: :rex_relay_ntlm },
86-
connect_timeout: @timeout
87-
)
88-
client.connection = self
89-
client
90-
end
91-
9277
protected
9378

9479
attr_reader :logger

0 commit comments

Comments
 (0)