-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Closed
Description
Running version: 1.4.4.4#dev
Python version: 2.7.17
Operating system: Linux-5.4.0-kali2-amd64-x86_64-with-debian-kali-rolling
Command line: /usr/bin/sqlmap -r ******* --encoding=GBK --hex --sql-shell
Technique: ERROR
Back-end DBMS: Microsoft SQL Server (fingerprinted)
Traceback (most recent call last):
File "sqlmap", line 215, in main
start()
File "/share/sqlmap/lib/core/decorators.py", line 75, in _
result = f(*args, **kwargs)
File "/share/sqlmap/lib/controller/controller.py", line 700, in start
action()
File "/share/sqlmap/lib/controller/action.py", line 192, in action
conf.dbmsHandler.sqlShell()
File "/share/sqlmap/plugins/generic/custom.py", line 108, in sqlShell
output = self.sqlQuery(query)
File "/share/sqlmap/plugins/generic/custom.py", line 53, in sqlQuery
output = inject.getValue(query, fromUser=True)
File "/share/sqlmap/lib/core/decorators.py", line 91, in _
result = f(*args, **kwargs)
File "/share/sqlmap/lib/core/decorators.py", line 75, in _
result = f(*args, **kwargs)
File "/share/sqlmap/lib/request/inject.py", line 450, in getValue
value = errorUse(forgeCaseExpression if expected == EXPECTED.BOOL else query, dump)
File "/share/sqlmap/lib/techniques/error/use.py", line 454, in errorUse
value = _errorFields(expression, expressionFields, expressionFieldsList)
File "/share/sqlmap/lib/techniques/error/use.py", line 247, in _errorFields
output = NULL if emptyFields and field in emptyFields else _oneShotErrorUse(expressionReplaced, field)
File "/share/sqlmap/lib/techniques/error/use.py", line 70, in _oneShotErrorUse
retVal = hashDBRetrieve(expression, checkConf=True)
File "/share/sqlmap/lib/core/common.py", line 4888, in hashDBRetrieve
retVal = conf.hashDB.retrieve(_, unserialize) if kb.resumeValues and not (checkConf and any((conf.flushSession, conf.freshQueries))) else None
File "/share/sqlmap/lib/utils/hashdb.py", line 79, in retrieve
hash_ = HashDB.hashKey(key)
File "/share/sqlmap/lib/utils/hashdb.py", line 71, in hashKey
key = getBytes(key if isinstance(key, six.text_type) else repr(key))
File "/share/sqlmap/lib/core/convert.py", line 259, in getBytes
retVal = value.encode(encoding, errors)
UnicodeEncodeError: 'gbk' codec can't encode character u'\xa0' in position 45: illegal multibyte sequence