Skip to content

Commit 63a7477

Browse files
committed
Minor update
1 parent 4ac319b commit 63a7477

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

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.0.12.0"
22+
VERSION = "1.0.12.1"
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ e60456db5380840a586654344003d4e6 lib/core/readlineng.py
4545
b3a62d41a5af6cd7fa733b6227febb0c lib/core/replication.py
4646
99a2b496b9d5b546b335653ca801153f lib/core/revision.py
4747
7c15dd2777af4dac2c89cab6df17462e lib/core/session.py
48-
079c062fb2fa5b45e2dbbf25323bc48a lib/core/settings.py
48+
e777e700b2a6e9b82993f8be46db45ac lib/core/settings.py
4949
7af83e4f18cab6dff5e67840eb65be80 lib/core/shell.py
5050
23657cd7d924e3c6d225719865855827 lib/core/subprocessng.py
5151
c3ace7874a536d801f308cf1fd03df99 lib/core/target.py
@@ -392,7 +392,7 @@ deb8dd4543177479b185af8b383a8bdf waf/airlock.py
392392
e75422b8487f9937e050a60bc5c35896 waf/blockdos.py
393393
f60078f702612da43dd2a8ed07e26694 waf/ciscoacexml.py
394394
ac2edfa1d49b00b4bf730a9317090566 waf/cloudflare.py
395-
c69e1091521671452eaedf4787817ede waf/cloudfront.py
395+
8035c255d55023f8c999ad5f7798e7fa waf/cloudfront.py
396396
765d0663658257ef0ab1060519c6e175 waf/comodo.py
397397
33633c9a2b9d53c325ba1110607d566f waf/datapower.py
398398
e0ad6e34b6082558e9f8f652d938c785 waf/denyall.py

waf/cloudfront.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
import re
99

10+
from lib.core.enums import HTTP_HEADER
1011
from lib.core.settings import WAF_ATTACK_VECTORS
1112

1213
__product__ = "CloudFront (Amazon)"
@@ -17,6 +18,7 @@ def detect(get_page):
1718
for vector in WAF_ATTACK_VECTORS:
1819
_, headers, _ = get_page(get=vector)
1920

21+
retval |= re.search(r"cloudfront", headers.get(HTTP_HEADER.SERVER, ""), re.I) is not None
2022
retval |= re.search(r"cloudfront", headers.get("X-Cache", ""), re.I) is not None
2123
retval |= headers.get("X-Amz-Cf-Id") is not None
2224

0 commit comments

Comments
 (0)