Skip to content

Commit a6e351e

Browse files
committed
Delete unnecessary request
1 parent ed26a2f commit a6e351e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

modules/exploits/multi/http/manageengine_auth_upload.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -265,11 +265,7 @@ def authenticate(cookie, username, password)
265265
}
266266
})
267267
if res && (res.code == 302 || (res.code == 200 && res.body.to_s =~ /redirectTo="\+'HomePage\.do';/))
268-
# sd and ae respond with 302 while sc responds with a 200
269-
res = send_request_cgi({
270-
'method' => 'GET',
271-
'uri' => normalize_uri('/HomePage.do')
272-
})
268+
# sd and ae respond with 302 while sc responds with a 200
273269
return true
274270
else
275271
return false

0 commit comments

Comments
 (0)