diff --git a/lib/controller/checks.py b/lib/controller/checks.py index 835e8bacf..39312a5c6 100644 --- a/lib/controller/checks.py +++ b/lib/controller/checks.py @@ -1421,17 +1421,24 @@ def identifyWaf(): page, headers, code = None, None, None try: pushValue(kb.redirectChoice) + pushValue(kb.resendPostOnRedirect) + kb.redirectChoice = REDIRECTION.YES + kb.resendPostOnRedirect = True + if kwargs.get("get"): kwargs["get"] = urlencode(kwargs["get"]) kwargs["raise404"] = False kwargs["silent"] = True kwargs["finalCode"] = True + page, headers, code = Request.getPage(*args, **kwargs) except Exception: pass finally: + kb.resendPostOnRedirect = popValue() kb.redirectChoice = popValue() + return page or "", headers or {}, code retVal = [] diff --git a/lib/core/settings.py b/lib/core/settings.py index 6cdae10fa..656119f4b 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.3.0" +VERSION = "1.3.3.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 ecf4692cc..1e47ae13c 100644 --- a/txt/checksum.md5 +++ b/txt/checksum.md5 @@ -24,7 +24,7 @@ fb6be55d21a70765e35549af2484f762 extra/sqlharvest/__init__.py fb6be55d21a70765e35549af2484f762 extra/wafdetectify/__init__.py aec73042403993076f478da48066a79e extra/wafdetectify/wafdetectify.py e6909a3b32fc09c0373101eb58c76538 lib/controller/action.py -d392dbccdb59ac36530c1182675a2609 lib/controller/checks.py +0fce185e63b1b743b3ef0a3dbe640366 lib/controller/checks.py 8581acf56b8fb0def50af3707490a834 lib/controller/controller.py c1da277517c7ec4c23e953a51b51e203 lib/controller/handler.py fb6be55d21a70765e35549af2484f762 lib/controller/__init__.py @@ -50,7 +50,7 @@ d5ef43fe3cdd6c2602d7db45651f9ceb lib/core/readlineng.py 7d8a22c582ad201f65b73225e4456170 lib/core/replication.py 3179d34f371e0295dd4604568fb30bcd lib/core/revision.py d6269c55789f78cf707e09a0f5b45443 lib/core/session.py -dd5a87792c98d150cd5d9c85bc086d13 lib/core/settings.py +9dbce20566a1964f650b8986885ae370 lib/core/settings.py 4483b4a5b601d8f1c4281071dff21ecc lib/core/shell.py 10fd19b0716ed261e6d04f311f6f527c lib/core/subprocessng.py 43772ea73e9e3d446f782af591cb4eda lib/core/target.py