Skip to content

Commit 47507e1

Browse files
author
us3r777
committed
Slight modifications to pass msftidy
1 parent f9b6519 commit 47507e1

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

lib/msf/http/jboss/base.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module Msf::HTTP::JBoss::Base
55
# Deploys a WAR through HTTP uri invoke
66
#
77
# @param opts [Hash] Hash containing {Exploit::Remote::HttpClient#send_request_cgi} options
8-
# @param num_attempts [Integer] The number of attempts
8+
# @param num_attempts [Integer] The number of attempts
99
# @return [Rex::Proto::Http::Response, nil] The {Rex::Proto::Http::Response} response if exists, nil otherwise
1010
def deploy(opts = {}, num_attempts = 5)
1111
uri = opts['uri']
@@ -85,7 +85,7 @@ def query_serverinfo
8585
{
8686
'uri' => path,
8787
'method' => http_verb,
88-
'vars_get' =>
88+
'vars_get' =>
8989
{
9090
'action' => 'inspectMBean',
9191
'name' => 'jboss.system:type=ServerInfo'

lib/msf/http/jboss/bean_shell_scripts.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: binary -*-
22

33
module Msf::HTTP::JBoss::BeanShellScripts
4-
4+
55
# Generates a Bean Shell Script.
66
#
77
# @param type [Symbol] The Bean Shell script type, `:create` or `:delete`.

lib/msf/http/jboss/deployment_file_repository.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def upload_file(base_name, jsp_name, content)
1717
params['argType'] = 'java.lang.String'
1818
params['arg0'] = base_name + '.war'
1919
params['argType'] = 'java.lang.String'
20-
params['arg1'] = jsp_name
20+
params['arg1'] = jsp_name
2121
params['argType'] = 'java.lang.String'
2222
params['arg2'] = '.jsp'
2323
params['argType'] = 'java.lang.String'

spec/lib/msf/http/jboss/base_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
it { expect(subject.query_serverinfo()).to be_kind_of Rex::Proto::Http::Response }
8383
end
8484
end
85-
85+
8686
describe "#detect_plateform" do
8787
context "when server arch is Linux" do
8888
res = Rex::Proto::Http::Response.new

0 commit comments

Comments
 (0)