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 befe224 commit df38a91Copy full SHA for df38a91
modules/auxiliary/scanner/http/wordpress_content_injection.rb
@@ -136,11 +136,11 @@ def do_update
136
post_url = full_uri(wordpress_url_post(post[:id]))
137
138
if res && res.code == 200
139
- print_good("SUCCESS: #{post_url} (post updated)")
140
- elsif res && res.code == 404
141
- print_error("FAILURE: #{post_url} (invalid post ID)")
+ print_good("SUCCESS: #{post_url} (Post updated)")
+ elsif res && (error = res.get_json_document['message'])
+ print_error("FAILURE: #{post_url} (#{error})")
142
else
143
- print_error("FAILURE: #{post_url} (unknown error)")
+ print_error("FAILURE: #{post_url} (Unknown error)")
144
end
145
146
0 commit comments