Skip to content

Unhandled exception (#ed6a59e4) #5134

Closed

Description

@sqlmapreporter
Running version: 1.6.6#pip
Python version: 3.9.12
Operating system: Windows-10-10.0.19043-SP0
Command line: D:\编程软件\python3\Scripts\sqlmap -r *********************************************************************** --is-dba --random-agent
Technique: None
Back-end DBMS: None
Traceback (most recent call last):
  File "lib/request/connect.py", line 618, in getPage
    conn = _urllib.request.urlopen(req)
  File "/urllib/request.py", line 214, in urlopen
    return opener.open(url, data, timeout)
  File "/urllib/request.py", line 517, in open
    response = self._open(req, data)
  File "/urllib/request.py", line 534, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
  File "/urllib/request.py", line 494, in _call_chain
    result = func(*args)
  File "/urllib/request.py", line 1375, in http_open
    return self.do_open(http.client.HTTPConnection, req)
  File "/urllib/request.py", line 1350, in do_open
    r = h.getresponse()
  File "/http/client.py", line 1377, in getresponse
    response.begin()
  File "/http/client.py", line 320, in begin
    version, status, reason = self._read_status()
  File "/http/client.py", line 281, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/socket.py", line 704, in readinto
    return self._sock.recv_into(b)
ConnectionAbortedError: [WinError 10053] 你的主机中的软件中止了一个已建立的连接。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "sqlmap.py", line 216, in main
    start()
  File "lib/core/decorators.py", line 80, in _
    result = f(*args, **kwargs)
  File "lib/controller/controller.py", line 589, in start
    injection = checkSqlInjection(place, parameter, value)
  File "lib/controller/checks.py", line 504, in checkSqlInjection
    Request.queryPage(genCmpPayload(), place, raise404=False)
  File "lib/core/decorators.py", line 80, in _
    result = f(*args, **kwargs)
  File "lib/request/connect.py", line 1526, in queryPage
    page, headers, code = Connect.getPage(url=uri, get=get, post=post, method=method, cookie=cookie, ua=ua, referer=referer, host=host, silent=silent, auxHeaders=auxHeaders, response=response, raise404=raise404, ignoreTimeout=timeBasedCompare)
  File "lib/request/connect.py", line 898, in getPage
    return Connect._retryProxy(**kwargs)
  File "lib/request/connect.py", line 222, in _retryProxy
    return Connect._getPageProxy(**kwargs)
  File "lib/request/connect.py", line 154, in _getPageProxy
    if (len(inspect.stack()) > sys.getrecursionlimit() // 2):   # Note: https://github.com/sqlmapproject/sqlmap/issues/4525
  File "/inspect.py", line 1554, in stack
    return getouterframes(sys._getframe(1), context)
  File "/inspect.py", line 1531, in getouterframes
    frameinfo = (frame,) + getframeinfo(frame, context)
  File "/inspect.py", line 1505, in getframeinfo
    lines, lnum = findsource(frame)
  File "/inspect.py", line 831, in findsource
    lines = linecache.getlines(file, module.__dict__)
  File "/linecache.py", line 46, in getlines
    return updatecache(filename, module_globals)
  File "/linecache.py", line 137, in updatecache
    lines = fp.readlines()
  File "/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb1 in position 21: invalid start byte

Activity

  1. self-assigned this
    on Jun 29, 2022
  2. added a commit that references this issue on Jun 29, 2022
  3. added this to the 1.7 milestone on Jun 29, 2022
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

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions