diff --git a/lib/wpscan/wp_target/wp_custom_directories.rb b/lib/wpscan/wp_target/wp_custom_directories.rb index 6a4d7354..59956edb 100644 --- a/lib/wpscan/wp_target/wp_custom_directories.rb +++ b/lib/wpscan/wp_target/wp_custom_directories.rb @@ -25,7 +25,7 @@ class WpTarget < WebSite response = Browser.get(@uri.merge('wp-content').to_s) if WpTarget.valid_response_codes.include?(response.code) - hash = Digest::MD5.hexdigest(response.body) + hash = WebSite.page_hash(response) return true if hash != error_404_hash and hash != homepage_hash end diff --git a/lib/wpscan/wp_target/wp_must_use_plugins.rb b/lib/wpscan/wp_target/wp_must_use_plugins.rb index e328861a..f0c82203 100644 --- a/lib/wpscan/wp_target/wp_must_use_plugins.rb +++ b/lib/wpscan/wp_target/wp_must_use_plugins.rb @@ -10,7 +10,7 @@ class WpTarget < WebSite response = Browser.get(must_use_url) if response && WpTarget.valid_response_codes.include?(response.code) - hash = Digest::MD5.hexdigest(response.body) + hash = WebSite.page_hash(response) return true if hash != error_404_hash && hash != homepage_hash end