Class: Msf::Exploit::Remote::HTTP::Exchange::ProxyMaybeShell::SSRFWinRMConnection
- Inherits:
-
WinRM::Connection
- Object
- WinRM::Connection
- Msf::Exploit::Remote::HTTP::Exchange::ProxyMaybeShell::SSRFWinRMConnection
- Defined in:
- lib/msf/core/exploit/remote/http/exchange/proxy_maybe_shell.rb
Defined Under Namespace
Modules: PowerShell Classes: MessageFactory, TransportFactory
Instance Method Summary collapse
-
#initialize(connection_opts) ⇒ SSRFWinRMConnection
constructor
A new instance of SSRFWinRMConnection.
- #transport ⇒ Object
Constructor Details
#initialize(connection_opts) ⇒ SSRFWinRMConnection
Returns a new instance of SSRFWinRMConnection.
194 195 196 197 198 |
# File 'lib/msf/core/exploit/remote/http/exchange/proxy_maybe_shell.rb', line 194 def initialize(connection_opts) # these have to be set to truthy values to pass the option validation, but they're not actually used because hax connection_opts.merge!({ user: :ssrf, password: :ssrf }) super(connection_opts) end |
Instance Method Details
#transport ⇒ Object
200 201 202 203 204 205 |
# File 'lib/msf/core/exploit/remote/http/exchange/proxy_maybe_shell.rb', line 200 def transport @transport ||= begin transport_factory = TransportFactory.new transport_factory.create_transport(@connection_opts) end end |