Skip to content

Commit 13f4b0d

Browse files
committed
Be more specific with invalid post ID
1 parent 6f4ff89 commit 13f4b0d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

modules/auxiliary/scanner/http/wordpress_content_injection.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,11 @@ def do_update
117117
post_url = full_uri(wordpress_url_post(post[:id]))
118118

119119
if res && res.code == 200
120-
print_good("SUCCESS: #{post_url}")
120+
print_good("SUCCESS: #{post_url} (post updated)")
121+
elsif res && res.code == 404
122+
print_error("FAILURE: #{post_url} (invalid post ID)")
121123
else
122-
print_error("FAILURE: #{post_url}")
124+
print_error("FAILURE: #{post_url} (unknown error)")
123125
end
124126
end
125127
end

0 commit comments

Comments
 (0)