test_remote_regex.py 文件源码

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

项目:csirtg-smrt-py 作者: csirtgadgets 项目源码 文件源码
def test_smrt_remote_regex():
    with Smrt(None, None, client='dummy') as s:
        assert type(s) is Smrt

        x = []
        for r, f in s.load_feeds('test/smrt/remote_regex.yml', feed='port-scanners'):
            x = list(s.process(r, f))
            assert len(x) > 0

        x = []
        for r, f in s.load_feeds('test/smrt/remote_regex.yml', feed='port-scanners-fail'):
            try:
                x = list(s.process(r, f))
            except RuntimeError as e:
                pass

            assert len(x) == 0
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号