Be more specific with invalid post ID

bug/bundler_fix
William Vu 2017-02-08 02:14:28 -06:00
parent 6f4ff89218
commit 13f4b0d7ae
1 changed files with 4 additions and 2 deletions

View File

@ -117,9 +117,11 @@ class MetasploitModule < Msf::Auxiliary
post_url = full_uri(wordpress_url_post(post[:id]))
if res && res.code == 200
print_good("SUCCESS: #{post_url}")
print_good("SUCCESS: #{post_url} (post updated)")
elsif res && res.code == 404
print_error("FAILURE: #{post_url} (invalid post ID)")
else
print_error("FAILURE: #{post_url}")
print_error("FAILURE: #{post_url} (unknown error)")
end
end
end