From 24c261d630d2f9a68bbfe70f66bb997833aefcb2 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sun, 17 Sep 2017 23:12:57 +0200 Subject: [PATCH] Minor patch --- lib/core/settings.py | 2 +- txt/checksum.md5 | 4 ++-- waf/generic.py | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index 9e50083d7..98a6d824c 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.1.9.17" +VERSION = "1.1.9.18" 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 57d0a9f8e..8ad44e924 100644 --- a/txt/checksum.md5 +++ b/txt/checksum.md5 @@ -46,7 +46,7 @@ a44d7a4cc6c9a67a72d6af2f25f4ddac lib/core/exception.py d8e9250f3775119df07e9070eddccd16 lib/core/replication.py 785f86e3f963fa3798f84286a4e83ff2 lib/core/revision.py 40c80b28b3a5819b737a5a17d4565ae9 lib/core/session.py -a68c970393d16970207aa9799f9772e0 lib/core/settings.py +234e894c58cebccf21c2217fccf8fd76 lib/core/settings.py d91291997d2bd2f6028aaf371bf1d3b6 lib/core/shell.py 2ad85c130cc5f2b3701ea85c2f6bbf20 lib/core/subprocessng.py effc153067a00bd43461bfc1cdec1122 lib/core/target.py @@ -403,7 +403,7 @@ ab6f6e3169cb43efcf5b6ed84b58252f waf/comodo.py e4b058d759198216d24f8fed6ef97be4 waf/edgecast.py f633953970fb181b9ac5420a47e6a610 waf/expressionengine.py 1df78b6ad49259514cb6e4d68371cbcf waf/fortiweb.py -a63bc52b39a7fac38a8a3adee1545851 waf/generic.py +f183f0bd0923917f070984caf987d5d7 waf/generic.py d50e17ed49e1a3cb846e652ed98e3b3c waf/hyperguard.py 5b5382ccfb82ee6afdc1b47c8a4bce70 waf/incapsula.py 310efc965c862cfbd7b0da5150a5ad36 waf/__init__.py diff --git a/waf/generic.py b/waf/generic.py index e8e7c7287..4cc93d8a3 100644 --- a/waf/generic.py +++ b/waf/generic.py @@ -22,7 +22,9 @@ def detect(get_page): page, _, code = get_page(get=vector) if code >= 400 or IDS_WAF_CHECK_PAYLOAD in vector and code is None: - kb.wafSpecificResponse = "HTTP/1.1 %s\n%s\n%s" % (code, "".join(_ for _ in headers.headers or [] if not _.startswith("URI")), page) + if code is not None: + kb.wafSpecificResponse = "HTTP/1.1 %s\n%s\n%s" % (code, "".join(_ for _ in headers.headers or [] if not _.startswith("URI")), page) + retval = True break