

def parser_redis_server_cache_poison(parser):
    gr = parser.add_argument_group('custom poison options')
    gr.add_argument('--search', action='store_true', dest='search_cache', default=False, help='try to find cache info stored in Redis')
    gr.add_argument('--cache-key', action='store', dest='cache_key', help='try to poisoning using selected key')
    payload = parser.add_argument_group('payloads options')
    payload.add_argument('-P', '--poison', action='store_true', dest='poison', default=False, help='enables cache poisoning')
    payload.add_argument('--payload', action='store', dest='poison_payload', help='try inject cmd inline payload')
    payload.add_argument('--file-payload', action='store', dest='poison_payload_file', help='try inject selected payload reading from a file')
    payload.add_argument('--replace-html', action='store', dest='new_html', help='replace cache content with selected file content')

dataset/ETHPy150Open cr0hn/enteletaor/enteletaor_lib/modules/redis/cmd_actions.py parser_redis_server_cache_poison/original