Whitespace

bug/bundler_fix
James Lee 2013-02-25 14:29:10 -06:00
parent e41922853e
commit 1ce86b7adb
4 changed files with 10 additions and 10 deletions

View File

@ -169,7 +169,7 @@ class Client
#
# @return [Request]
def request_raw(opts={})
opts['agent'] ||= config['agent']
opts['agent'] ||= config['agent']
opts['data'] ||= ''
opts['uri'] ||= '/'
opts['cookie'] ||= config['cookie']
@ -179,7 +179,7 @@ class Client
opts['method'] ||= 'GET'
opts['proto'] ||= 'HTTP'
opts['query'] ||= ''
opts['cgi'] = false
opts['port'] = self.port
opts['basic_auth'] = opts['basic_auth'] || config['basic_auth'] || ''
@ -221,12 +221,12 @@ class Client
opts['ctype'] ||= 'application/x-www-form-urlencoded'
opts['vars_get'] ||= {}
opts['vars_post'] ||= {}
opts['cgi'] = true
opts['port'] = self.port
opts['basic_auth'] = opts['basic_auth'] || config['basic_auth'] || ''
opts['raw_headers'] = opts['raw_headers'] || config['raw_headers'] || ''
opts['version'] = opts['version'] || config['version'] || '1.1'
opts['version'] = opts['version'] || config['version'] || '1.1'
opts['client_config'] = self.config

View File

@ -118,9 +118,9 @@ class ClientRequest
if encode
req << set_encode_uri(uri_str)
else
req << uri_str
req << uri_str
end
if (qstr.length > 0)
req << '?'
@ -456,4 +456,4 @@ end
end
end
end
end

View File

@ -116,10 +116,10 @@ class Metasploit3 < Msf::Auxiliary
def do_login(user='admin', pass='admin')
vprint_status("#{target_url} - Trying username:'#{user}' with password:'#{pass}'")
response = do_http_login(user,pass)
result = determine_result(response)
if result == :success
print_good("#{target_url} - Successful login '#{user}' : '#{pass}'")

View File

@ -132,7 +132,7 @@ describe Rex::Proto::Http::Client do
# These set_ methods all exercise the evasion opts, looks like
it "should set and return the URI", :pending => excuse_lazy(:set_uri) do
end
it "should set and return the CGI", :pending => excuse_lazy(:set_cgi) do