Skip to content
Permalink
Browse files

Land #12175, hadoop_unauth_exec NoMethodError fix

  • Loading branch information...
wvu-r7 committed Aug 8, 2019
2 parents 3ea79c4 + b5fd9b4 commit f317987e02ff64aa62aeef09e3e23b0522d86593
Showing with 4 additions and 0 deletions.
  1. +4 −0 modules/exploits/linux/http/hadoop_unauth_exec.rb
@@ -70,6 +70,10 @@ def execute_command(cmd, opts = {})
'method' => 'POST'
)

unless res && res.code == 200 && res.body.include?('application-id')
fail_with(Failure::NotFound, 'Could not retrieve application-id')
end

app_id = res.get_json_document['application-id']

post = {

0 comments on commit f317987

Please sign in to comment.
You can’t perform that action at this time.