':param domain_path: The URL object pointing to the current wordpress
installation
:return: A list with the paths that might trigger full path disclosures
TODO: Will fail if WordPress is running on a Windows server due to
paths manipulation.'

def _extract_paths(self, domain_path):

    theme_paths = []
    wp_root_response = self._uri_opener.GET(domain_path, cache=True)
    if (not is_404(wp_root_response)):
        response_body = wp_root_response.get_body()
        theme_regexp = ('%swp-content/themes/(.*)/style.css' % domain_path)
        theme = re.search(theme_regexp, response_body, re.IGNORECASE)
        if theme:
            theme_name = theme.group(1)
            for fname in ('header', 'footer'):
                path_fname = ('wp-content/themes/%s/%s.php' % (theme_name, fname))
                theme_paths.append(path_fname)
    return theme_paths
