Support domain login in WinRM module
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user