# Path: moth/views/base/html_template_view.py
# class HTMLTemplateView(VulnerableTemplateView):
#     '''
#     All vulnerabilities inherit from this template, which will render the data
#     returned by the subclasses, disable anti-CSRF, etc.
#     '''
#     # If the subclass just wants to return static HTML, we give him a shortcut
#     # where he doesn't define the get method, just sets HTML and we'll do the
#     # rest
#     HTML = None
# 
#     def get(self, request, *args, **kwds):
#         if self.HTML is None:
#             raise RuntimeError('HTML needs to be set.')
#         
#         context = self.get_context_data()
#         context['html'] = self.HTML
# 
#         response = render(request, self.template_name, context)
# 
#         for key, value in self.extra_headers.iteritems():
#             response[key] = value
# 
#         return response


from moth.views.base.html_template_view import HTMLTemplateView
    img id=logo src='/static/moth/images/w3af.png' alt="w3af">
    <br/><br/>
    <a href="11.html">Dead end: 404.</a>
    '''


class FourView(HTMLTemplateView):
    title = 'Crawl test fourth page'
    description = 'Links to dead ends.'
    url_path = 'test_case_01/4.html'
    linked = False

    HTML = '''
    All dead-ends<br/>
    <a href="7.html">Dead end</a><br/>
    <a href="9.html">Dead end</a><br/>
    '''


class SpaceInPathView(HTMLTemplateView):
    title = 'Space in path'
    description = 'An index file with a space in the path'
    url_path = 'test_case_01/d f/index.html'
    linked = False

    HTML = '''
    I do exist.
    '''



# Path: moth/views/base/html_template_view.py
# class HTMLTemplateView(VulnerableTemplateView):
#     '''
#     All vulnerabilities inherit from this template, which will render the data
#     returned by the subclasses, disable anti-CSRF, etc.
#     '''
#     # If the subclass just wants to return static HTML, we give him a shortcut
#     # where he doesn't define the get method, just sets HTML and we'll do the
#     # rest
#     HTML = None
# 
#     def get(self, request, *args, **kwds):
#         if self.HTML is None:
#             raise RuntimeError('HTML needs to be set.')
#         
#         context = self.get_context_data()
#         context['html'] = self.HTML
# 
#         response = render(request, self.template_name, context)
# 
#         for key, value in self.extra_headers.iteritems():
#             response[key] = value
# 
#         return response


# Path: moth/views/vulnerabilities/crawl/web_spider.py
from moth.views.base.html_template_view import HTMLTemplateView

    img id=logo src='/static/moth/images/w3af.png' alt="w3af">
    <br/><br/>
    <a href="11.html">Dead end: 404.</a>
    '''


class FourView(HTMLTemplateView):
    title = 'Crawl test fourth page'
    description = 'Links to dead ends.'
    url_path = 'test_case_01/4.html'
    linked = False

    HTML = '''
    All dead-ends<br/>
    <a href="7.html">Dead end</a><br/>
    <a href="9.html">Dead end</a><br/>
    '''


class SpaceInPathView(HTMLTemplateView):
    title = 'Space in path'
    description = 'An index file with a space in the path'
    url_path = 'test_case_01/d f/index.html'
    linked = False

    HTML = '''
    I do exist.
    '''



class SpaceInFileView(HTMLTemplateView):