Skip to content

Unhandled exception (#15c40901) #3192

@sqlmapreporter

Description

@sqlmapreporter
Running version: 1.2.7.16#dev
Python version: 2.7.10
Operating system: Windows-8-6.2.9200
Command line: sqlmap.py -u ******************************************
Technique: UNION
Back-end DBMS: MySQL (fingerprinted)
Traceback (most recent call last):
  File "sqlmap.py", line 160, in main
    start()
  File "lib/core/decorators.py", line 34, in _
    result = f(*args, **kwargs)
  File "lib/controller/controller.py", line 550, in start
    injection = checkSqlInjection(place, parameter, value)
  File "lib/controller/checks.py", line 834, in checkSqlInjection
    checkSuhosinPatch(injection)
  File "lib/core/decorators.py", line 34, in _
    result = f(*args, **kwargs)
  File "lib/controller/checks.py", line 954, in checkSuhosinPatch
    if not checkBooleanExpression("%d=%s%d" % (randInt, ' ' * SUHOSIN_MAX_VALUE_LENGTH, randInt)):
  File "lib/request/inject.py", line 510, in checkBooleanExpression
    return getValue(expression, expected=EXPECTED.BOOL, charsetType=CHARSET_TYPE.BINARY, suppressOutput=True, expectingNone=expectingNone)
  File "lib/core/decorators.py", line 34, in _
    result = f(*args, **kwargs)
  File "lib/request/inject.py", line 392, in getValue
    value = _goUnion(forgeCaseExpression if expected == EXPECTED.BOOL else query, unpack, dump)
  File "lib/request/inject.py", line 333, in _goUnion
    output = unionUse(expression, unpack=unpack, dump=dump)
  File "lib/techniques/union/use.py", line 401, in unionUse
    output = _oneShotUnionUse(expression, unpack)
  File "lib/techniques/union/use.py", line 64, in _oneShotUnionUse
    retVal = hashDBRetrieve("%s%s" % (conf.hexConvert or False, expression), checkConf=True)  # as UNION data is stored raw unconverted
  File "lib/core/common.py", line 4315, in hashDBRetrieve
    retVal = conf.hashDB.retrieve(_, unserialize) if kb.resumeValues and not (checkConf and any((conf.flushSession, conf.freshQueries))) else None
  File "lib/utils/hashdb.py", line 82, in retrieve
    for row in self.cursor.execute("SELECT value FROM storage WHERE id=?", (hash_,)):
  File "lib/utils/hashdb.py", line 46, in _get_cursor
    errMsg += "file '%s' ('%s')" % (self.filepath, getSafeExString(ex))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 15: ordinal not in range(128)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions