Class: Msf::Exploit::Remote::HTTP::Exchange::ProxyMaybeShell::SSRFWinRMConnection::MessageFactory

Inherits:
WinRM::PSRP::MessageFactory
  • Object
show all
Defined in:
lib/msf/core/exploit/remote/http/exchange/proxy_maybe_shell.rb

Class Method Summary collapse

Class Method Details

.create_pipeline_message(runspace_pool_id, pipeline_id, command) ⇒ Object



116
117
118
119
120
121
122
123
# File 'lib/msf/core/exploit/remote/http/exchange/proxy_maybe_shell.rb', line 116

def self.create_pipeline_message(runspace_pool_id, pipeline_id, command)
  WinRM::PSRP::Message.new(
    runspace_pool_id,
    WinRM::PSRP::Message::MESSAGE_TYPES[:create_pipeline],
    XMLTemplate.render('create_pipeline', cmdlet: command[:cmdlet], args: command[:args]),
    pipeline_id
  )
end