mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-11-21 14:19:25 -10:00
Fix for --param-del being URL encoded in GET requests
This commit is contained in:
1 parent
da5c2c66c6
commit
fec03cf662
2 files changed
+3
-3
No files matched your search
@@ -19,7 +19,7 @@ from lib.core.enums import OS
|
||||
from thirdparty import six
|
||||
|
||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||
VERSION = "1.10.11.29"
|
||||
VERSION = "1.10.11.30"
|
||||
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)
|
||||
|
||||
@@ -500,7 +500,7 @@ class Connect(object):
|
||||
get = conf.parameters[PLACE.GET]
|
||||
|
||||
if not conf.skipUrlEncode:
|
||||
get = urlencode(get, limit=True)
|
||||
get = urlencode(get, safe="%%&=-_%s" % (conf.paramDel or ""), limit=True)
|
||||
|
||||
if get:
|
||||
if '?' in url:
|
||||
@@ -1678,7 +1678,7 @@ class Connect(object):
|
||||
cookie += "%s%s=%s" % (conf.cookieDel or DEFAULT_COOKIE_DELIMITER, name, entry)
|
||||
|
||||
if not conf.skipUrlEncode:
|
||||
get = urlencode(get, limit=True)
|
||||
get = urlencode(get, safe="%%&=-_%s" % (conf.paramDel or ""), limit=True)
|
||||
|
||||
if post is not None:
|
||||
if place not in (PLACE.POST, PLACE.CUSTOM_POST) and hasattr(post, UNENCODED_ORIGINAL_VALUE):
|
||||
|
||||
Reference in new issue
Block a user