diff --git a/lib/msf/http/jboss/base.rb b/lib/msf/http/jboss/base.rb index 10d2011fb4..b3b81157e1 100644 --- a/lib/msf/http/jboss/base.rb +++ b/lib/msf/http/jboss/base.rb @@ -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' diff --git a/lib/msf/http/jboss/bean_shell_scripts.rb b/lib/msf/http/jboss/bean_shell_scripts.rb index 995b13c25d..418120beaf 100644 --- a/lib/msf/http/jboss/bean_shell_scripts.rb +++ b/lib/msf/http/jboss/bean_shell_scripts.rb @@ -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`. diff --git a/lib/msf/http/jboss/deployment_file_repository.rb b/lib/msf/http/jboss/deployment_file_repository.rb index db2887bf1c..8241e22f0b 100644 --- a/lib/msf/http/jboss/deployment_file_repository.rb +++ b/lib/msf/http/jboss/deployment_file_repository.rb @@ -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' diff --git a/spec/lib/msf/http/jboss/base_spec.rb b/spec/lib/msf/http/jboss/base_spec.rb index d23ca01f73..9e22a7aaca 100644 --- a/spec/lib/msf/http/jboss/base_spec.rb +++ b/spec/lib/msf/http/jboss/base_spec.rb @@ -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 diff --git a/spec/lib/msf/http/jboss/deployment_file_repository_scripts.spec.rb b/spec/lib/msf/http/jboss/deployment_file_repository_scripts_spec.rb similarity index 100% rename from spec/lib/msf/http/jboss/deployment_file_repository_scripts.spec.rb rename to spec/lib/msf/http/jboss/deployment_file_repository_scripts_spec.rb