owtf_extensions/wafbypasser/core/detection.py
def resp_code_detection(response, args):
    """This function detects if the response code of an http response is a
    a user defined number or range"""
    code_range = []
    items = []
    items = args["response_codes"].split(',')
    for item in items:
        tokens = item.split('-')
        if len(tokens) == 2:
            code_range.extend(list(range(int(tokens[0]), int(tokens[1]) + 1)))
        else:
            code_range.append(int(tokens[0]))
    detection = response.code in code_range
    if args["reverse"]:
        return not detection
    return detection
This function detects if the response code of an http response is a
    a user defined number or range
This function detects if the response code of an http response is a
a user defined number or range
This function detects if the response code of an http response is a a user defined number or range
def resp_code_detection(response, args):
    code_range = []
    items = []
    items = args["response_codes"].split(',')
    for item in items:
        tokens = item.split('-')
        if len(tokens) == 2:
            code_range.extend(list(range(int(tokens[0]), int(tokens[1]) + 1)))
        else:
            code_range.append(int(tokens[0]))
    detection = response.code in code_range
    if args["reverse"]:
        return not detection
    return detection
def resp_code_detection ( response , args ) : code_range = [ ] items = [ ] items = args [ "response_codes" ] . split ( ',' ) for item in items : tokens = item . split ( '-' ) if len ( tokens ) == 2 : code_range . extend ( list ( range ( int ( tokens [ 0 ] ) , int ( tokens [ 1 ] ) + 1 ) ) ) else : code_range . append ( int ( tokens [ 0 ] ) ) detection = response . code in code_range if args [ "reverse" ] : return not detection return detection
This function detects if the response code of an http response is a
a user defined number or range
This function detects if the response code of an http response is a a user defined number or range
"""This function detects if the response code of an http response is a
    a user defined number or range"""
response
args