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

Skip to content

Commit f322306

Browse files
committed
Fixes #4803
1 parent 8f84b74 commit f322306

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty.six import unichr as _unichr
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.5.9.4"
23+
VERSION = "1.5.9.5"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,10 @@ class _(dict):
764764
singleTimeWarnMessage(warnMsg)
765765
conf.chunked = kwargs["chunked"] = False
766766
return Connect.getPage(**kwargs)
767+
elif ex.code == _http_client.REQUEST_URI_TOO_LONG:
768+
warnMsg = "request URI is marked as too long by the target. "
769+
warnMsg += "you are advised to try a switch '--no-cast' and/or '--no-escape'"
770+
singleTimeWarnMessage(warnMsg)
767771
elif ex.code == _http_client.NOT_FOUND:
768772
if raise404:
769773
errMsg = "page not found (%d)" % code

0 commit comments

Comments
 (0)