'Plugin entry point, search for directory indexing.
:param request: The HTTP request object.
:param response: The HTTP response object
:return: None'

def grep(self, request, response):

    if (not response.is_text_or_html()):
        return
    if (response.get_url().get_domain_path() in self._already_visited):
        return
    self._already_visited.add(response.get_url().get_domain_path())
    html_string = response.get_body()
    if self._multi_in.query(html_string):
        desc = 'The    URL:    "%s"    has    a    directory    indexing    vulnerability.'
        desc = (desc % response.get_url())
        v = Vuln('Directory    indexing', desc, severity.LOW, response.id, self.get_name())
        v.set_url(response.get_url())
        self.kb_append_uniq(self, 'directory', v, 'URL')
