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

Skip to content

Commit 2e42afe

Browse files
committed
Update of sucury WAF script
1 parent 292a281 commit 2e42afe

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
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.14"
22+
VERSION = "1.0.7.15"
2323
REVISION = getRevisionNumber()
2424
STABLE = VERSION.count('.') <= 2
2525
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")

waf/sucuri.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,16 @@
1010
from lib.core.enums import HTTP_HEADER
1111
from lib.core.settings import WAF_ATTACK_VECTORS
1212

13-
__product__ = "Sucuri WebSite Firewall"
13+
__product__ = "CloudProxy WebSite Firewall (Sucuri)"
1414

1515
def detect(get_page):
1616
retval = False
1717

1818
for vector in WAF_ATTACK_VECTORS:
19-
_, headers, code = get_page(get=vector)
19+
page, headers, code = get_page(get=vector)
2020
retval = code == 403 and re.search(r"Sucuri/Cloudproxy", headers.get(HTTP_HEADER.SERVER, ""), re.I) is not None
21+
retval |= "Sucuri WebSite Firewall - CloudProxy - Access Denied" in (page or "")
22+
retval |= re.search(r"Questions\?.+cloudproxy@sucuri\.net", (page or "")) is not None
2123
if retval:
2224
break
2325

0 commit comments

Comments
 (0)