'Plugin entry point.
:param request: The HTTP request object.
:param response: The HTTP response object
:return: None, all results are saved in the kb.'

def grep(self, request, response):

    if (not response.is_text_or_html()):
        return
    if (not self.symfony_detected(response)):
        return
    if self.has_csrf_token(response):
        return
    desc = 'The    URL:    "%s"    seems    to    be    generated    by    the    Symfony    framework    and    contains    a    form    that    has    CSRF    protection    disabled.'
    desc %= response.get_url()
    i = Info('Symfony    Framework    with    CSRF    protection    disabled', desc, response.id, self.get_name())
    i.set_url(response.get_url())
    self.kb_append_uniq(self, 'symfony', i, 'URL')
