# 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
class PrivateIPFalsePositiveOracleVersion(HTMLTemplateView):
    title = 'Oracle application server version false positive check'
    description = 'False positive check for Oracle server version'
    url_path = 'false-positive-1.html'
    false_positive_check = True
    
    HTML = '''
    Server: Oracle-Application-Server-10g/10.1.2.0.2 Oracle-HTTP-Server
    '''

class PrivateIPFalsePositive2(HTMLTemplateView):
    title = 'Email address false positive check'
    description = 'Private IP address exposure false positive'
    url_path = 'false-positive-2.html'
    false_positive_check = True
    
    HTML = '''
    abc@172.16.1.1
    '''
    
class PrivateIPFalsePositive3(HTMLTemplateView):
    title = 'Not IP address'
    description = 'Looks like an IP address, but not'
    url_path = 'false-positive-3.html'
    false_positive_check = True
    
    HTML = '''
    10.10.10.10.10
    '''
    

# 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/grep/private_ip.py
from moth.views.base.html_template_view import HTMLTemplateView

class PrivateIPFalsePositiveOracleVersion(HTMLTemplateView):
    title = 'Oracle application server version false positive check'
    description = 'False positive check for Oracle server version'
    url_path = 'false-positive-1.html'
    false_positive_check = True
    
    HTML = '''
    Server: Oracle-Application-Server-10g/10.1.2.0.2 Oracle-HTTP-Server
    '''

class PrivateIPFalsePositive2(HTMLTemplateView):
    title = 'Email address false positive check'
    description = 'Private IP address exposure false positive'
    url_path = 'false-positive-2.html'
    false_positive_check = True
    
    HTML = '''
    abc@172.16.1.1
    '''
    
class PrivateIPFalsePositive3(HTMLTemplateView):
    title = 'Not IP address'
    description = 'Looks like an IP address, but not'
    url_path = 'false-positive-3.html'
    false_positive_check = True
    
    HTML = '''
    10.10.10.10.10
    '''
    

class PrivateIPFalsePositive4(HTMLTemplateView):