Slight modifications to pass msftidy

bug/bundler_fix
us3r777 2014-09-29 23:59:12 +02:00
parent f9b6519e49
commit 47507e1ff1
5 changed files with 5 additions and 5 deletions

View File

@ -5,7 +5,7 @@ module Msf::HTTP::JBoss::Base
# Deploys a WAR through HTTP uri invoke
#
# @param opts [Hash] Hash containing {Exploit::Remote::HttpClient#send_request_cgi} options
# @param num_attempts [Integer] The number of attempts
# @param num_attempts [Integer] The number of attempts
# @return [Rex::Proto::Http::Response, nil] The {Rex::Proto::Http::Response} response if exists, nil otherwise
def deploy(opts = {}, num_attempts = 5)
uri = opts['uri']
@ -85,7 +85,7 @@ module Msf::HTTP::JBoss::Base
{
'uri' => path,
'method' => http_verb,
'vars_get' =>
'vars_get' =>
{
'action' => 'inspectMBean',
'name' => 'jboss.system:type=ServerInfo'

View File

@ -1,7 +1,7 @@
# -*- coding: binary -*-
module Msf::HTTP::JBoss::BeanShellScripts
# Generates a Bean Shell Script.
#
# @param type [Symbol] The Bean Shell script type, `:create` or `:delete`.

View File

@ -17,7 +17,7 @@ module Msf::HTTP::JBoss::DeploymentFileRepository
params['argType'] = 'java.lang.String'
params['arg0'] = base_name + '.war'
params['argType'] = 'java.lang.String'
params['arg1'] = jsp_name
params['arg1'] = jsp_name
params['argType'] = 'java.lang.String'
params['arg2'] = '.jsp'
params['argType'] = 'java.lang.String'

View File

@ -82,7 +82,7 @@ describe Msf::HTTP::JBoss::Base do
it { expect(subject.query_serverinfo()).to be_kind_of Rex::Proto::Http::Response }
end
end
describe "#detect_plateform" do
context "when server arch is Linux" do
res = Rex::Proto::Http::Response.new