UploadForm.py 文件源码

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

项目:fuxploider 作者: almandin 项目源码 文件源码
def detectValidExtension(self, future) :
        if not self.stopThreads :
            html = future.result()[0].text
            ext = future.ext[0]

            r = self.isASuccessfulUpload(html)
            if r :
                self.validExtensions.append(ext)
                if self.shouldLog :
                    self.logger.info("\033[1m\033[42mExtension %s seems valid for this form.\033[m", ext)
                    if r != True :
                        self.logger.info("\033[1;32mTrue regex matched the following information : %s\033[m",r)

            return r
        else :
            return None

    #detects valid extensions for this upload form (sending legit files with legit mime types)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号