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

Skip to content

Commit 9e69d60

Browse files
committed
Fixes #3929
1 parent ad785ea commit 9e69d60

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

lib/core/agent.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
from lib.core.common import urlencode
2828
from lib.core.common import zeroDepthSearch
2929
from lib.core.compat import xrange
30+
from lib.core.convert import encodeBase64
3031
from lib.core.convert import getUnicode
3132
from lib.core.data import conf
3233
from lib.core.data import kb
@@ -170,8 +171,8 @@ def payload(self, place=None, parameter=None, value=None, newValue=None, where=N
170171

171172
if re.sub(r" \(.+", "", parameter) in conf.base64Parameter:
172173
# TODO: support for POST_HINT
173-
newValue = base64.b64encode(newValue)
174-
origValue = base64.b64encode(origValue)
174+
newValue = encodeBase64(newValue, binary=False)
175+
origValue = encodeBase64(origValue, binary=False)
175176

176177
if place in (PLACE.URI, PLACE.CUSTOM_POST, PLACE.CUSTOM_HEADER):
177178
_ = "%s%s" % (origValue, kb.customInjectionMark)

lib/core/settings.py

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

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

0 commit comments

Comments
 (0)