File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed
lib/metasploit/framework/login_scanner Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -145,19 +145,9 @@ def try_glassfish_2(credential)
145
145
# * :proof [String] the HTTP response body
146
146
def try_glassfish_9 ( credential )
147
147
res = try_login ( credential )
148
- if res && res . code == 302
149
- opts = {
150
- 'uri' => '/applications/upload.jsf' ,
151
- 'method' => 'GET' ,
152
- 'headers' => {
153
- 'Cookie' => "JSESSIONID=#{ self . jsession } "
154
- }
155
- }
156
148
157
- res = send_request ( opts )
158
- if res && res . code . to_i == 302 && res . headers [ 'Location' ] . to_s !~ /loginError\. jsf$/
159
- return { :status => Metasploit ::Model ::Login ::Status ::SUCCESSFUL , :proof => res . body }
160
- end
149
+ if res && res . code . to_i == 302 && res . headers [ 'Location' ] . to_s !~ /loginError\. jsf$/
150
+ return { :status => Metasploit ::Model ::Login ::Status ::SUCCESSFUL , :proof => res . body }
161
151
end
162
152
163
153
{ :status => Metasploit ::Model ::Login ::Status ::INCORRECT , :proof => res . body }
You can’t perform that action at this time.
0 commit comments