Exemple #1
0
def files_types(mongodb):
    try:
        auth.require(role='access_normalized')
    except AAAException as e:
        return HTTPError(401, e.message)
    result = simple_group('file', 'content_guess', mongodb)
    return jsonify(result, response)
Exemple #2
0
def files_types(mongodb):
    try:
        auth.require(role='access_normalized')
    except AAAException as e:
        return HTTPError(401, e.message)
    result = simple_group('file', 'content_guess', mongodb)
    return jsonify(result, response)
Exemple #3
0
def files_types(mongodb):
    try:
        auth.require(role="access_normalized")
    except AAAException as e:
        return HTTPError(401, e.message)
    return HTTPError(410, "This part of the API has been temporarily disabled to due to performance issues.")
    result = simple_group("file", "content_guess", mongodb)
    return jsonify(result, response)
Exemple #4
0
def session_protocols(mongodb):
    """
    Returns a grouped list of all protocols intercepted.
    Example:
    {"protocols": [{"count": 680, "protocol": "http"},
                   {"count": 125, "protocol": "ssh},
                   {"count": 74,  "protocol": "imap}]}
    """
    auth.require(role='access_normalized')
    result = simple_group('session', 'protocol', mongodb)
    return jsonify(result, response)
Exemple #5
0
def session_protocols(mongodb):
    """
    Returns a grouped list of all protocols intercepted.
    Example:
    {"protocols": [{"count": 680, "protocol": "http"},
                   {"count": 125, "protocol": "ssh},
                   {"count": 74,  "protocol": "imap}]}
    """
    auth.require(role='access_normalized')
    result = simple_group('session', 'protocol', mongodb)
    return jsonify(result, response)
Exemple #6
0
def files_types(mongodb):
    try:
        auth.require(role='access_normalized')
    except AAAException as e:
        return HTTPError(401, e.message)
    return HTTPError(
        410,
        'This part of the API has been temporarily disabled to due to performance issues.'
    )
    result = simple_group('file', 'content_guess', mongodb)
    return jsonify(result, response)
Exemple #7
0
def session_protocols(mongodb):
    """
    Returns a grouped list of all protocols intercepted.
    Example:
    {"protocols": [{"count": 680, "protocol": "http"},
               {"count": 125, "protocol": "ssh},
               {"count": 74,  "protocol": "imap}]}
    """
    return HTTPError(410, 'This part of the API has been temporarily disabled to due to performance issues.')
    auth.require(role='access_normalized')
    result = simple_group('session', 'protocol', mongodb)
    return jsonify(result, response)