diff --git a/lib/core/agent.py b/lib/core/agent.py index 48d8173b7..15fc96910 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -27,6 +27,7 @@ from lib.core.common import unArrayizeValue from lib.core.common import urlencode from lib.core.common import zeroDepthSearch from lib.core.compat import xrange +from lib.core.convert import encodeBase64 from lib.core.convert import getUnicode from lib.core.data import conf from lib.core.data import kb @@ -170,8 +171,8 @@ class Agent(object): if re.sub(r" \(.+", "", parameter) in conf.base64Parameter: # TODO: support for POST_HINT - newValue = base64.b64encode(newValue) - origValue = base64.b64encode(origValue) + newValue = encodeBase64(newValue, binary=False) + origValue = encodeBase64(origValue, binary=False) if place in (PLACE.URI, PLACE.CUSTOM_POST, PLACE.CUSTOM_HEADER): _ = "%s%s" % (origValue, kb.customInjectionMark) diff --git a/lib/core/settings.py b/lib/core/settings.py index 6c25ced44..66f933be9 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -18,7 +18,7 @@ from lib.core.enums import OS from thirdparty.six import unichr as _unichr # sqlmap version (...) -VERSION = "1.3.9.14" +VERSION = "1.3.9.15" 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)