From 9b9e157e842871ef1c39e2043cac43b7cb2973e3 Mon Sep 17 00:00:00 2001 From: sinn3r Date: Wed, 25 Mar 2015 02:26:06 -0500 Subject: [PATCH] More yard doc --- lib/metasploit/framework/login_scanner/http.rb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/metasploit/framework/login_scanner/http.rb b/lib/metasploit/framework/login_scanner/http.rb index df5b3204a7..61276de777 100644 --- a/lib/metasploit/framework/login_scanner/http.rb +++ b/lib/metasploit/framework/login_scanner/http.rb @@ -189,8 +189,14 @@ module Metasploit # Sends a HTTP request with Rex # - # @param (see Rex::Proto::Http::Request#request_raw) - # @raise [Rex::ConnectionError] Something has gone wrong while sending the HTTP request + # @param [Hash] Native support includes the following (also see Rex::Proto::Http::Request#request_cgi) + # @option opts[String] 'host' The remote host + # @option opts[Fixnum] 'port' The remote port + # @option opts[Boolean] 'ssl' The SSL setting, TrueClass or FalseClass + # @option opts[String] 'proxies' The proxies setting + # @option opts[Credential] 'credential' A credential object + # @option opts['Hash'] 'context' A context + # @raise [Rex::ConnectionError] One of these errors has occured: EOFError, Errno::ETIMEDOUT, Rex::ConnectionError, ::Timeout::Error # @return [Rex::Proto::Http::Response] The HTTP response def send_request(opts) rhost = opts['host'] || host