From 77cb85f2b8b97f11dd59e2a4ea7f50e0f49b7373 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 18 Apr 2019 10:24:38 +0200 Subject: [PATCH] Update regarding #3592 --- lib/core/settings.py | 2 +- lib/request/connect.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index aa6f2d35d..0aaf27b24 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -17,7 +17,7 @@ from lib.core.enums import DBMS_DIRECTORY_NAME from lib.core.enums import OS # sqlmap version (...) -VERSION = "1.3.4.15" +VERSION = "1.3.4.16" 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 55eb44579..6cf273e99 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -636,6 +636,11 @@ class Connect(object): errMsg = "not authorized, try to provide right HTTP " errMsg += "authentication type and valid credentials (%d)" % code raise SqlmapConnectionException(errMsg) + elif chunked and ex.code in (_http_client.METHOD_NOT_ALLOWED, _http_client.LENGTH_REQUIRED): + errMsg = "it seems that target site doesn't support " + errMsg += "HTTP chunking (%d). " % code + errMsg += "Please try to rerun without the switch '--chunked'" + raise SqlmapConnectionException(errMsg) elif ex.code == _http_client.NOT_FOUND: if raise404: errMsg = "page not found (%d)" % code