This commit is contained in:
Miroslav Stampar 2021-07-04 23:45:22 +02:00
parent 69c679cf06
commit 1f3a1410f2
2 changed files with 5 additions and 3 deletions

View File

@ -20,7 +20,7 @@ from thirdparty import six
from thirdparty.six import unichr as _unichr from thirdparty.six import unichr as _unichr
# sqlmap version (<major>.<minor>.<month>.<monthly commit>) # sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.5.7.0" VERSION = "1.5.7.1"
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} 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) VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

View File

@ -10,7 +10,9 @@ import re
import string import string
import sys import sys
if sys.version_info >= (3, 0): PY3 = sys.version_info >= (3, 0)
if PY3:
xrange = range xrange = range
text_type = str text_type = str
string_types = (str,) string_types = (str,)
@ -92,7 +94,7 @@ def safechardecode(value, binary=False):
if binary: if binary:
if isinstance(retVal, text_type): if isinstance(retVal, text_type):
retVal = retVal.encode("utf8") retVal = retVal.encode("utf8", errors="surrogatepass" if PY3 else "strict")
elif isinstance(value, (list, tuple)): elif isinstance(value, (list, tuple)):
for i in xrange(len(value)): for i in xrange(len(value)):