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

Skip to content

Commit 6697e49

Browse files
committed
Adding aesecure and crawlprotect WAF scripts
1 parent db8bcd1 commit 6697e49

4 files changed

Lines changed: 48 additions & 2 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.enums import OS
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.2.9.18"
22+
VERSION = "1.2.9.19"
2323
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2424
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2525
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

txt/checksum.md5

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ c8c386d644d57c659d74542f5f57f632 lib/core/patch.py
5050
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
5151
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
5252
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
53-
9b9a0dbc9e47aa07545f1e157ebb3d4e lib/core/settings.py
53+
ef7c758b79feb71ddb3376df9149d562 lib/core/settings.py
5454
dd68a9d02fccb4fa1428b20e15b0db5d lib/core/shell.py
5555
a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
5656
815d1cf27f0f8738d81531e73149867d lib/core/target.py
@@ -392,6 +392,7 @@ d9006810684baf01ea33281d21522519 udf/postgresql/windows/32/8.3/lib_postgresqlud
392392
ca3ab78d6ed53b7f2c07ed2530d47efd udf/postgresql/windows/32/8.4/lib_postgresqludf_sys.dll_
393393
0d3fe0293573a4453463a0fa5a081de1 udf/postgresql/windows/32/9.0/lib_postgresqludf_sys.dll_
394394
336d0b0d2be333f5a6184042c85464fd waf/360.py
395+
0ce8a335c7eb9cf14e645f64b3a5e91f waf/aesecure.py
395396
a73a40d201b39f3387714c59934331e4 waf/airlock.py
396397
7da7970b45512b0233450dbd8088fde0 waf/anquanbao.py
397398
b61329e8f8bdbf5625f9520ec010af1f waf/armor.py
@@ -407,6 +408,7 @@ ba84f296cb52f5e78a0670b98d7763fa waf/cloudbric.py
407408
94b50385a9d462492e3a639d71aaa1c3 waf/cloudflare.py
408409
29ba81741fd7e220a95fe7c5fae76e1a waf/cloudfront.py
409410
ac96f34c254951d301973617064eb1b5 waf/comodo.py
411+
c84e515440fe482476c1f2687bd9960f waf/crawlprotect.py
410412
56d58c982c2cf775e0f8dc6767f336fd waf/datapower.py
411413
1538b661e35843074f4599be93b3fae9 waf/denyall.py
412414
0182d23b34cf903537f77f4ec4b144bf waf/distil.py

waf/aesecure.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/usr/bin/env python
2+
3+
"""
4+
Copyright (c) 2006-2018 sqlmap developers (http://sqlmap.org/)
5+
See the file 'LICENSE' for copying permission
6+
"""
7+
8+
import re
9+
10+
from lib.core.enums import HTTP_HEADER
11+
from lib.core.settings import WAF_ATTACK_VECTORS
12+
13+
__product__ = "aeSecure (aeSecure)"
14+
15+
def detect(get_page):
16+
retval = False
17+
18+
for vector in WAF_ATTACK_VECTORS:
19+
page, headers, _ = get_page(get=vector)
20+
retval = headers.get("aeSecure-code") is not None
21+
retval |= all(_ in (page or "") for _ in ("aeSecure", "aesecure_denied.png"))
22+
if retval:
23+
break
24+
25+
return retval

waf/crawlprotect.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env python
2+
3+
"""
4+
Copyright (c) 2006-2018 sqlmap developers (http://sqlmap.org/)
5+
See the file 'LICENSE' for copying permission
6+
"""
7+
8+
from lib.core.settings import WAF_ATTACK_VECTORS
9+
10+
__product__ = "CrawlProtect (Jean-Denis Brun)"
11+
12+
def detect(get_page):
13+
retval = False
14+
15+
for vector in WAF_ATTACK_VECTORS:
16+
page, _, code = get_page(get=vector)
17+
retval = code >= 400 and "This site is protected by CrawlProtect" in (page or "")
18+
19+
return retval

0 commit comments

Comments
 (0)