'Plugin entry point, search for the DOM XSS vulns.
: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
    for vuln_code in self._smart_grep(response):
        desc = 'The    URL:    "%s"    has    a    DOM    XSS    (insecure    javascript    code)    bug    using:    "%s".'
        desc = (desc % (response.get_url(), vuln_code))
        v = Vuln('DOM    Cross    site    scripting', desc, severity.LOW, response.id, self.get_name())
        v.set_url(response.get_url())
        v.add_to_highlight(vuln_code)
        self.kb_append_uniq(self, 'dom_xss', v, filter_by='URL')
