Adding CloudFlare CAPTCHA warning

This commit is contained in:
Miroslav Stampar
2016-07-23 23:02:15 +02:00
parent 9105f259cd
commit 10eafa35fd
3 changed files with 6 additions and 4 deletions

View File

@@ -359,6 +359,8 @@ def processResponse(page, responseHeaders):
if re.search(r"(?i)captcha", match.group(0)):
kb.captchaDetected = True
warnMsg = "potential CAPTCHA protection mechanism detected"
if re.search(r"(?i)<title>[^<]*CloudFlare", page):
warnMsg += " (CloudFlare)"
singleTimeWarnMessage(warnMsg)
break