rules.py 文件源码

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

项目:PeekabooAV 作者: scVENUS 项目源码 文件源码
def file_larger_than(s, args):
    tb = traceback.extract_stack()
    tb = tb[-1]
    position = "%s:%s" % (tb[2], tb[1])

    size = args['byte']
    if s.file_size > size:
        return RuleResult(position,
                          result=Result.unknown,
                          reason="Datei hat mehr als %d bytes"
                          % size,
                          further_analysis=True)

    return RuleResult(position,
                      result=Result.ignored,
                      reason="Datei ist nur %d bytes lang"
                      % s.file_size,
                      further_analysis=False)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号