File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
modules/auxiliary/admin/http Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -28,10 +28,7 @@ def initialize
28
28
[ 'OSVDB' , '64171' ] ,
29
29
[ 'URL' , 'http://www.redteam-pentesting.de/publications/jboss' ] ,
30
30
[ '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
+ ]
35
32
)
36
33
37
34
register_options (
@@ -52,7 +49,7 @@ def run
52
49
uri = '/' + app_base + '/'
53
50
if datastore [ 'DEPLOY' ]
54
51
# Read the WAR from the given file
55
- war_data = File . read ( datastore [ 'WARFILE' ] )
52
+ war_data = File . read ( datastore [ 'WARFILE' ] )
56
53
encoded_payload = Rex ::Text . encode_base64 ( war_data ) . gsub ( /\n / , '' )
57
54
if http_verb == 'POST' then
58
55
print_status ( "Deploying payload..." )
@@ -103,7 +100,7 @@ def run
103
100
files [ :app_base ] = "#{ app_base } .war"
104
101
delete_script = generate_bsh ( :delete , files )
105
102
106
- package = deploy_bsh ( delete_script )
103
+ package = deploy_bsh ( delete_script )
107
104
if package . nil?
108
105
print_warning ( "WARNING: Unable to remove WAR" )
109
106
end
You can’t perform that action at this time.
0 commit comments