owtf_extensions/wafbypasser/core/helper.py
def load_payload_file(payload_path, valid_size=100000,
                      exclude_chars=[]):
    """This Function loads a list with payloads"""
    payloads = []
    try:
        with open(os.path.expanduser(payload_path), 'r') as f:
            for line in f.readlines():
                line = line.strip('\n')
                if len(line) > valid_size:
                    continue
                excluded_found = [c in line for c in exclude_chars]
                if True in excluded_found:
                    continue
                payloads.append(line)
    except Exception as e:
        Error(str(e))
    print('Payload: ' + payload_path + ' loaded.')
    print('\t' + str(len(payloads)) + ' payload(s) found.')
    return payloads
This Function loads a list with payloads
This Function loads a list with payloads
This Function loads a list with payloads
def load_payload_file(payload_path, valid_size=100000,
                      exclude_chars=[]):
    payloads = []
    try:
        with open(os.path.expanduser(payload_path), 'r') as f:
            for line in f.readlines():
                line = line.strip('\n')
                if len(line) > valid_size:
                    continue
                excluded_found = [c in line for c in exclude_chars]
                if True in excluded_found:
                    continue
                payloads.append(line)
    except Exception as e:
        Error(str(e))
    print('Payload: ' + payload_path + ' loaded.')
    print('\t' + str(len(payloads)) + ' payload(s) found.')
    return payloads
def load_payload_file ( payload_path , valid_size = 100000 , exclude_chars = [ ] ) : payloads = [ ] try : with open ( os . path . expanduser ( payload_path ) , 'r' ) as f : for line in f . readlines ( ) : line = line . strip ( '\n' ) if len ( line ) > valid_size : continue excluded_found = [ c in line for c in exclude_chars ] if True in excluded_found : continue payloads . append ( line ) except Exception as e : Error ( str ( e ) ) print ( 'Payload: ' + payload_path + ' loaded.' ) print ( '\t' + str ( len ( payloads ) ) + ' payload(s) found.' ) return payloads
This Function loads a list with payloads
This Function loads a list with payloads
"""This Function loads a list with payloads"""
payload_path
valid_size
exclude_chars