Method: Msf::Exploit::Remote::HttpClient#send_request_raw

Defined in:
lib/msf/core/exploit/http/client.rb

#send_request_raw(opts = {}, timeout = 20) ⇒ Object

Connects to the server, creates a request, sends the request, reads the response

Passes opts through directly to Rex::Proto::Http::Client#request_raw.


261
262
263
264
265
266
267
268
269
# File 'lib/msf/core/exploit/http/client.rb', line 261

def send_request_raw(opts={}, timeout = 20)
  begin
    c = connect(opts)
    r = c.request_raw(opts)
    c.send_recv(r, opts[:timeout] ? opts[:timeout] : timeout)
  rescue ::Errno::EPIPE, ::Timeout::Error
    nil
  end
end