api.py 文件源码

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

项目:idsfree 作者: BBVA 项目源码 文件源码
def run_server_idsfree(config: IdsFreeRunServeRemoveModel):
    """
    This functions does:

    - Check that remote host has required software and versions
    - Build the environment and launch the attacks
    - Load raw results, transform it and return in selected format as string

    It returns the name of cyphered network created.
    """
    assert isinstance(config, IdsFreeRunServeRemoveModel)

    loop = asyncio.get_event_loop()

    # Check remote Docker version
    if not config.skip_check_requisites:
        loop.run_until_complete(check_remote_requisites(config))

    app['IDSFREE_CONFIG'] = config
    app['GLOBAL_CONFIG'] = config_to_dict(config)

    # Launch attacks
    web.run_app(app,
                host=config.listen_addr,
                port=int(config.listen_port))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号