# Path: ptp/libptp/constants.py
# HIGH = 4
# 
# MEDIUM = 3
# 
# LOW = 2
# 
# INFO = 1


from ptp.libptp.constants import HIGH, MEDIUM, LOW, INFO
"""

:synopsis: Wapiti does not provide ranking for the vulnerabilities it has found. This file tries to define a ranking
    for every vulnerability Wapiti might find.

.. moduleauthor:: Tao Sauvage

"""




#: :data: :class:`dict` of the categories with their rank.
SIGNATURES = {
    # High ranked vulnerabilities
    'SQL Injection': HIGH,
    'Blind SQL Injection': HIGH,
    'Command execution': HIGH,
    'Cross Site Scripting': HIGH,

    # Medium ranked vulnerabilities
    'Htaccess Bypass': MEDIUM,
    'CRLF Injection': MEDIUM,
    'CRLF': MEDIUM,

    # Low ranked vulnerabilities
    'File Handling': LOW,  # a.k.a Path or Directory listing

# Path: ptp/libptp/constants.py
# HIGH = 4
# 
# MEDIUM = 3
# 
# LOW = 2
# 
# INFO = 1


# Path: ptp/tools/wapiti/signatures.py
from ptp.libptp.constants import HIGH, MEDIUM, LOW, INFO

"""

:synopsis: Wapiti does not provide ranking for the vulnerabilities it has found. This file tries to define a ranking
    for every vulnerability Wapiti might find.

.. moduleauthor:: Tao Sauvage

"""




#: :data: :class:`dict` of the categories with their rank.
SIGNATURES = {
    # High ranked vulnerabilities
    'SQL Injection': HIGH,
    'Blind SQL Injection': HIGH,
    'Command execution': HIGH,
    'Cross Site Scripting': HIGH,

    # Medium ranked vulnerabilities
    'Htaccess Bypass': MEDIUM,
    'CRLF Injection': MEDIUM,
    'CRLF': MEDIUM,

    # Low ranked vulnerabilities
    'File Handling': LOW,  # a.k.a Path or Directory listing

    'Resource consumption': LOW,  # TODO: Is this higher than LOW?