punk_fuzz.py 文件源码

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

项目:-PunkScan 作者: swordli 项目源码 文件源码
def fuzzworth_contentl(self, head, strict = False):
        '''Check the content-length before moving on. If strict is set to True content-length
        must be validated before moving on. If strict is set to False (default) the URL will
        be fuzzed if no content-length is found or no head is returned. The idea behind this
        method is to ensure that huge files are not downloaded, slowing down fuzzing.'''

        #no param no fuzzing
        if head and "content-length" in head:

            content_length = int(head["content-length"])

            if content_length < self.pagesize_limit:
                return True

            else:
                return False

        else:
            if strict:
                return False

            else:
                return True
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号