Skip to content

'ascii' codec can't decode byte #457

Closed

Description

@erwinwo-dc

Running SQL map with Python 2.7.3 even with running with --charset=utf8

[ERROR] thread 1: 'ascii' codec can't decode byte 0xc1 in position 33: ordinal not in range(128)
[ERROR] thread 2: 'ascii' codec can't decode byte 0xc1 in position 33: ordinal not in range(128)
[ERROR] thread 3: 'ascii' codec can't decode byte 0xc1 in position 33: ordinal not in range(128)
[ERROR] thread 4: 'ascii' codec can't decode byte 0xc1 in position 33: ordinal not in range(128)
[ERROR] thread 5: 'ascii' codec can't decode byte 0xc1 in position 33: ordinal not in range(128)

Activity

  1. stamparm commented on Jun 3, 2013

    @stamparm
    Member

    Hi.

    This information is not enough for us to be able to reproduce nor detect what's causing the problem.

    Could you please rerun it in single thread mode (--threads=1) and copy-paste the traceback here?

  2. ghost assigned on Jun 3, 2013
  3. erwinwo-dc commented on Jun 4, 2013

    @erwinwo-dc
    Author

    Downloaded https://github.com/sqlmapproject/sqlmap/archive/master.zip renamed folder to sqlmap-dev:

    Traceback (most recent call last):
      File "./sqlmap-dev/lib/core/threads.py", line 131, in runThreads
        threadFunction()
      File "./sqlmap-dev/lib/techniques/union/use.py", line 268, in unionThread
        output = _oneShotUnionUse(limitedExpr, unpack, True)
      File "./sqlmap-dev/lib/techniques/union/use.py", line 73, in _oneShotUnionUse
        page, headers = Request.queryPage(payload, content=True, raise404=False)
      File "./sqlmap-dev/lib/request/connect.py", line 845, in queryPage
        page, headers, code = Connect.getPage(url=uri, get=get, post=post, cookie=cookie, ua=ua, referer=referer, host=host, silent=silent, method=method, auxHeaders=auxHeaders, response=response, raise404=raise404, ignoreTimeout=timeBasedCompare)
      File "./sqlmap-dev/lib/request/connect.py", line 563, in getPage
        requestMsg = requestMsg.replace("%s HTTP/" % url, "%s HTTP/" % conn.redurl, 1)
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xc1 in position 33: ordinal not in range(128)
    
  4. added a commit that references this issue on Jun 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions