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)
评论列表
文章目录