test_packetmail.py 文件源码

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

项目:csirtg-smrt-py 作者: csirtgadgets 项目源码 文件源码
def test_packetmail_iprep():
    rule.feeds['iprep']['remote'] = 'test/packetmail/feed.txt'
    x = s.process(rule, feed="iprep")
    x = list(x)
    assert len(x) > 0

    ips = set()
    tags = set()

    for xx in x:
        ips.add(xx.indicator)
        for t in xx.tags:
            tags.add(t)

    assert '179.40.212.141' in ips
    assert '104.131.128.9' in ips

    assert 'honeynet' in tags
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号