Support domain login in WinRM module

This commit is contained in:
Ashley Donaldson
2021-09-06 10:25:36 +10:00
parent 7a75a91dc6
commit eeef8a3085
2 changed files with 5 additions and 1 deletions
+3
View File
@@ -168,6 +168,9 @@ module Net
self.http_client = Rex::Proto::Http::Client.new(opts[:host], opts[:port], {}, opts[:ssl], opts[:ssl_version], opts[:proxies], opts[:user], opts[:password])
@mutex = Mutex.new
self.uri = opts[:uri]
if opts[:realm]
self.http_client.set_config('domain' => opts[:realm])
end
end
def send_request(message)
@@ -94,7 +94,8 @@ class MetasploitModule < Msf::Auxiliary
:no_ssl_peer_verification => true,
:operation_timeout => 1,
:http_timeout => 20, # For the underlying HTTP client
:retry_delay => 1
:retry_delay => 1,
:realm => result.credential.realm,
)
shell = conn.shell(:stdin)
# Trigger the shell to open