redis_clients.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:enteletaor 作者: cr0hn 项目源码 文件源码
def action_redis_server_connected(config):
    """
    Dump all redis information
    """
    log.warning("  - Trying to connect with redis server...")

    # Connection with redis
    con = redis.StrictRedis(host=config.target, port=config.port, db=config.db)

    log.error("Connected users to '%s':" % config.target)

    for c in con.client_list():

        # Skip local host connections
        client = c['addr']
        db = c['db']

        log.error("  - %s (DB: %s)" % (client, db))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号