'Search for IP addresses in the HTML'

def _analyze_html(self, request, response):

    if (not response.is_text_or_html()):
        return
    if (not (('10.' in response) or ('172.' in response) or ('192.168.' in response) or ('169.254.' in response))):
        return
    for regex in self.RE_LIST:
        for ip_address in regex.findall(response.get_body()):
            ip_address = ip_address.strip()
            if re.search(('^.*X-Forwarded-For:    .*%s' % ip_address), response.get_body(), re.M):
                continue
            if (ip_address in self._ignore_if_match):
                continue
            if request.sent(ip_address):
                continue
            desc = 'The    URL:    "%s"    returned    an    HTML    document    which    contains    the    private    IP    address:    "%s".'
            desc = (desc % (response.get_url(), ip_address))
            v = Vuln('Private    IP    disclosure    vulnerability', desc, severity.LOW, response.id, self.get_name())
            v.set_url(response.get_url())
            v.add_to_highlight(ip_address)
            v[HTMLPrivateIPInfoSet.ITAG] = ip_address
            self.kb_append_uniq_group(self, 'HTML', v, group_klass=HTMLPrivateIPInfoSet)
