diff --git a/lib/controller/checks.py b/lib/controller/checks.py index df951b106..aedb46e32 100644 --- a/lib/controller/checks.py +++ b/lib/controller/checks.py @@ -1423,6 +1423,7 @@ def identifyWaf(): kwargs["get"] = urlencode(kwargs["get"]) kwargs["raise404"] = False kwargs["silent"] = True + kwargs["finalCode"] = True page, headers, code = Request.getPage(*args, **kwargs) except Exception: pass diff --git a/lib/core/settings.py b/lib/core/settings.py index c8bf60b3f..c3da3428f 100644 --- 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.3.1.28" +VERSION = "1.3.1.29" 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/lib/request/connect.py b/lib/request/connect.py index bc4f67145..e336941fa 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -270,6 +270,7 @@ class Connect(object): crawling = kwargs.get("crawling", False) checking = kwargs.get("checking", False) skipRead = kwargs.get("skipRead", False) + finalCode = kwargs.get("finalCode", False) if multipart: post = multipart @@ -496,7 +497,7 @@ class Connect(object): if hasattr(conn, "redurl"): page = (threadData.lastRedirectMsg[1] if kb.redirectChoice == REDIRECTION.NO else Connect._connReadProxy(conn)) if not skipRead else None skipLogTraffic = kb.redirectChoice == REDIRECTION.NO - code = conn.redcode + code = conn.redcode if not finalCode else code else: page = Connect._connReadProxy(conn) if not skipRead else None diff --git a/txt/checksum.md5 b/txt/checksum.md5 index 9f69be096..c393cd48a 100644 --- a/txt/checksum.md5 +++ b/txt/checksum.md5 @@ -23,7 +23,7 @@ fb6be55d21a70765e35549af2484f762 extra/sqlharvest/__init__.py fb6be55d21a70765e35549af2484f762 extra/wafdetectify/__init__.py f73623c18b7f6ebb71f10e124b1b93c9 extra/wafdetectify/wafdetectify.py d0f2b424f5b2b06f26cdd7076d61be6e lib/controller/action.py -4b20581ddd8d026b8cad8a4b3e3aaad6 lib/controller/checks.py +eaccf6204d8c44cee9daba955af0c85e lib/controller/checks.py 3c18f0b1d1b9fda682201a264f170b31 lib/controller/controller.py e97a9d34fef5761a8eab6432ce3c7c53 lib/controller/handler.py fb6be55d21a70765e35549af2484f762 lib/controller/__init__.py @@ -49,7 +49,7 @@ fe370021c6bc99daf44b2bfc0d1effb3 lib/core/patch.py 9a7d68d5fa01561500423791f15cc676 lib/core/replication.py 3179d34f371e0295dd4604568fb30bcd lib/core/revision.py d6269c55789f78cf707e09a0f5b45443 lib/core/session.py -19d561e7ba93f697cc8ec095051fed5a lib/core/settings.py +16e7294b01b6e705cb5c209cc17f1563 lib/core/settings.py a8a7501d1e6b21669b858a62e921d191 lib/core/shell.py 5dc606fdf0afefd4b305169c21ab2612 lib/core/subprocessng.py eec3080ba5baca44c6de4595f1c92a0d lib/core/target.py @@ -71,7 +71,7 @@ fb6be55d21a70765e35549af2484f762 lib/parse/__init__.py e4ea70bcd461f5176867dcd89d372386 lib/request/basicauthhandler.py 6076c01e84b589adb97cac421a7d5251 lib/request/basic.py fc25d951217077fe655ed2a3a81552ae lib/request/comparison.py -3b76bfadb74c069b17d73d2aba241005 lib/request/connect.py +8e7f52dd4ef26f90310fc1082e17f4f8 lib/request/connect.py 7cba86090b02558f04c6692cef66e772 lib/request/direct.py 0a5cc34a7bbe709684ce32b4b46afd32 lib/request/dns.py 7bab2719ef2a6f1ddd838fa2335ae635 lib/request/httpshandler.py