From 63a74777f2c2f313f7a09b2ebfc1f389925c319d Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 1 Dec 2016 23:08:49 +0100 Subject: [PATCH] Minor update --- lib/core/settings.py | 2 +- txt/checksum.md5 | 4 ++-- waf/cloudfront.py | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index e8dccade6..b1caa99d8 100755 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -19,7 +19,7 @@ from lib.core.enums import DBMS_DIRECTORY_NAME from lib.core.enums import OS # sqlmap version (...) -VERSION = "1.0.12.0" +VERSION = "1.0.12.1" TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE) diff --git a/txt/checksum.md5 b/txt/checksum.md5 index 8ecd69050..5b46bc56e 100644 --- a/txt/checksum.md5 +++ b/txt/checksum.md5 @@ -45,7 +45,7 @@ e60456db5380840a586654344003d4e6 lib/core/readlineng.py b3a62d41a5af6cd7fa733b6227febb0c lib/core/replication.py 99a2b496b9d5b546b335653ca801153f lib/core/revision.py 7c15dd2777af4dac2c89cab6df17462e lib/core/session.py -079c062fb2fa5b45e2dbbf25323bc48a lib/core/settings.py +e777e700b2a6e9b82993f8be46db45ac lib/core/settings.py 7af83e4f18cab6dff5e67840eb65be80 lib/core/shell.py 23657cd7d924e3c6d225719865855827 lib/core/subprocessng.py c3ace7874a536d801f308cf1fd03df99 lib/core/target.py @@ -392,7 +392,7 @@ deb8dd4543177479b185af8b383a8bdf waf/airlock.py e75422b8487f9937e050a60bc5c35896 waf/blockdos.py f60078f702612da43dd2a8ed07e26694 waf/ciscoacexml.py ac2edfa1d49b00b4bf730a9317090566 waf/cloudflare.py -c69e1091521671452eaedf4787817ede waf/cloudfront.py +8035c255d55023f8c999ad5f7798e7fa waf/cloudfront.py 765d0663658257ef0ab1060519c6e175 waf/comodo.py 33633c9a2b9d53c325ba1110607d566f waf/datapower.py e0ad6e34b6082558e9f8f652d938c785 waf/denyall.py diff --git a/waf/cloudfront.py b/waf/cloudfront.py index 902713be9..5ddb438cf 100644 --- a/waf/cloudfront.py +++ b/waf/cloudfront.py @@ -7,6 +7,7 @@ See the file 'doc/COPYING' for copying permission import re +from lib.core.enums import HTTP_HEADER from lib.core.settings import WAF_ATTACK_VECTORS __product__ = "CloudFront (Amazon)" @@ -17,6 +18,7 @@ def detect(get_page): for vector in WAF_ATTACK_VECTORS: _, headers, _ = get_page(get=vector) + retval |= re.search(r"cloudfront", headers.get(HTTP_HEADER.SERVER, ""), re.I) is not None retval |= re.search(r"cloudfront", headers.get("X-Cache", ""), re.I) is not None retval |= headers.get("X-Amz-Cf-Id") is not None