Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7c7ecc7

Browse files
committed
Better implementation for #3592
1 parent 77cb85f commit 7c7ecc7

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from lib.core.enums import OS
1818

1919
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
20-
VERSION = "1.3.4.16"
20+
VERSION = "1.3.4.17"
2121
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2222
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2323
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/request/connect.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -637,10 +637,11 @@ class _(dict):
637637
errMsg += "authentication type and valid credentials (%d)" % code
638638
raise SqlmapConnectionException(errMsg)
639639
elif chunked and ex.code in (_http_client.METHOD_NOT_ALLOWED, _http_client.LENGTH_REQUIRED):
640-
errMsg = "it seems that target site doesn't support "
641-
errMsg += "HTTP chunking (%d). " % code
642-
errMsg += "Please try to rerun without the switch '--chunked'"
643-
raise SqlmapConnectionException(errMsg)
640+
warnMsg = "turning off HTTP chunked transfer encoding "
641+
warnMsg += "as it seems that the target site doesn't support it (%d)" % code
642+
singleTimeWarnMessage(warnMsg)
643+
conf.chunked = kwargs["chunked"] = False
644+
return Connect.getPage(**kwargs)
644645
elif ex.code == _http_client.NOT_FOUND:
645646
if raise404:
646647
errMsg = "page not found (%d)" % code

0 commit comments

Comments
 (0)