'Find wordpress version from data'

def _fingerprint_data(self, domain_path, wp_unique_url, response):

    for wp_fingerprint in self._get_wp_fingerprints():
        path = wp_fingerprint.filepath
        path = path.replace('$wp-content$', 'wp-content/')
        path = path.replace('$wp-plugins$', 'wp-content/plugins/')
        test_url = domain_path.url_join(path)
        response = self._uri_opener.GET(test_url, cache=True)
        response_hash = hashlib.md5(response.get_body()).hexdigest()
        if (response_hash == wp_fingerprint.hash):
            version = wp_fingerprint.version
            desc = 'WordPress    version    "%s"    fingerprinted    by    matching    known    md5    hashes    to    HTTP    responses    of    static    resources    available    at    the    remote    WordPress    install.'
            desc = (desc % version)
            i = Info('Fingerprinted    Wordpress    version', desc, response.id, self.get_name())
            i.set_url(test_url)
            kb.kb.append(self, 'info', i)
            om.out.information(i.get_desc())
            break
