Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 10eafa3

Browse files
committed
Adding CloudFlare CAPTCHA warning
1 parent 9105f25 commit 10eafa3

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

lib/core/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.revision import getRevisionNumber
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.0.7.39"
22+
VERSION = "1.0.7.40"
2323
REVISION = getRevisionNumber()
2424
STABLE = VERSION.count('.') <= 2
2525
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")
@@ -603,7 +603,7 @@
603603
CHECK_ZERO_COLUMNS_THRESHOLD = 10
604604

605605
# Boldify all logger messages containing these "patterns"
606-
BOLD_PATTERNS = ("' injectable", "provided empty", "leftover chars", "might be injectable", "' is vulnerable", "is not injectable", "test failed", "test passed", "live test final result", "test shows that", "the back-end DBMS is", "created Github", "blocked by the target server", "protection is involved")
606+
BOLD_PATTERNS = ("' injectable", "provided empty", "leftover chars", "might be injectable", "' is vulnerable", "is not injectable", "test failed", "test passed", "live test final result", "test shows that", "the back-end DBMS is", "created Github", "blocked by the target server", "protection is involved", "CAPTCHA")
607607

608608
# Generic www root directory names
609609
GENERIC_DOC_ROOT_DIRECTORY_NAMES = ("htdocs", "httpdocs", "public", "wwwroot", "www")

lib/request/basic.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,8 @@ def processResponse(page, responseHeaders):
359359
if re.search(r"(?i)captcha", match.group(0)):
360360
kb.captchaDetected = True
361361
warnMsg = "potential CAPTCHA protection mechanism detected"
362+
if re.search(r"(?i)<title>[^<]*CloudFlare", page):
363+
warnMsg += " (CloudFlare)"
362364
singleTimeWarnMessage(warnMsg)
363365
break
364366

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ e60456db5380840a586654344003d4e6 lib/core/readlineng.py
4545
5ef56abb8671c2ca6ceecb208258e360 lib/core/replication.py
4646
99a2b496b9d5b546b335653ca801153f lib/core/revision.py
4747
7c15dd2777af4dac2c89cab6df17462e lib/core/session.py
48-
b10a550bac6290cc73312c413c39506a lib/core/settings.py
48+
b80701b8eaf927683e27192bcbc8825f lib/core/settings.py
4949
7af83e4f18cab6dff5e67840eb65be80 lib/core/shell.py
5050
23657cd7d924e3c6d225719865855827 lib/core/subprocessng.py
5151
0bc2fae1dec18cdd11954b22358293f2 lib/core/target.py
@@ -66,7 +66,7 @@ cc9c82cfffd8ee9b25ba3af6284f057e lib/parse/__init__.py
6666
af6b8e1c6eb074b56bbd9cd80aebcd97 lib/parse/payloads.py
6767
b40a4c5d91770d347df36d3065b63798 lib/parse/sitemap.py
6868
9299f21804033f099681525bb9bf51c0 lib/request/basicauthhandler.py
69-
92fb749208255c64bcac82e9efd39cf4 lib/request/basic.py
69+
a3e83cfe7e6825fb1b70951ad290d2ae lib/request/basic.py
7070
9d757c63413a15222af90d3648de9de3 lib/request/comparison.py
7171
72a0e7bb1010bb39c6538dbc77eae180 lib/request/connect.py
7272
49b4c583af68689de5f9acb162de2939 lib/request/direct.py

0 commit comments

Comments
 (0)