Class: Msf::Exploit::Remote::SMB::Server::HashCapture::HashCaptureNTLMProvider
- Inherits:
-
RubySMB::Gss::Provider::NTLM
- Object
- RubySMB::Gss::Provider::NTLM
- Msf::Exploit::Remote::SMB::Server::HashCapture::HashCaptureNTLMProvider
- Defined in:
- lib/msf/core/exploit/remote/smb/server/hash_capture.rb
Instance Attribute Summary collapse
-
#listener ⇒ Object
readonly
Returns the value of attribute listener.
-
#ntlm_type3_status ⇒ Object
Returns the value of attribute ntlm_type3_status.
Instance Method Summary collapse
-
#initialize(allow_anonymous: false, allow_guests: false, default_domain: 'WORKGROUP', listener: nil, ntlm_type3_status: ::WindowsError::NTStatus::STATUS_ACCESS_DENIED) ⇒ HashCaptureNTLMProvider
constructor
A new instance of HashCaptureNTLMProvider.
-
#new_authenticator(server_client) ⇒ Object
Needs overwritten to ensure our version of Authenticator is returned.
Constructor Details
#initialize(allow_anonymous: false, allow_guests: false, default_domain: 'WORKGROUP', listener: nil, ntlm_type3_status: ::WindowsError::NTStatus::STATUS_ACCESS_DENIED) ⇒ HashCaptureNTLMProvider
Returns a new instance of HashCaptureNTLMProvider.
180 181 182 183 184 |
# File 'lib/msf/core/exploit/remote/smb/server/hash_capture.rb', line 180 def initialize(allow_anonymous: false, allow_guests: false, default_domain: 'WORKGROUP', listener: nil, ntlm_type3_status: ::WindowsError::NTStatus::STATUS_ACCESS_DENIED) super(allow_anonymous: allow_anonymous, allow_guests: allow_guests, default_domain: default_domain) @listener = listener @ntlm_type3_status = ntlm_type3_status end |
Instance Attribute Details
#listener ⇒ Object (readonly)
Returns the value of attribute listener.
193 194 195 |
# File 'lib/msf/core/exploit/remote/smb/server/hash_capture.rb', line 193 def listener @listener end |
#ntlm_type3_status ⇒ Object
Returns the value of attribute ntlm_type3_status.
194 195 196 |
# File 'lib/msf/core/exploit/remote/smb/server/hash_capture.rb', line 194 def ntlm_type3_status @ntlm_type3_status end |
Instance Method Details
#new_authenticator(server_client) ⇒ Object
Needs overwritten to ensure our version of Authenticator is returned
187 188 189 190 191 |
# File 'lib/msf/core/exploit/remote/smb/server/hash_capture.rb', line 187 def new_authenticator(server_client) # build and return an instance that can process and track stateful information for a particular connection but # that's backed by this particular provider HashCaptureAuthenticator.new(self, server_client) end |