Skip to content

Unhandled exception (#8c675c19) #5428

@sqlmapreporter

Description

@sqlmapreporter
Running version: 1.7.5.4#dev
Python version: 3.11.2
Operating system: Linux-6.1.0-kali5-amd64-x86_64-with-glibc2.36
Command line: /usr/bin/sqlmap -u *************************** --random-agent --tor
Technique: None
Back-end DBMS: None
Traceback (most recent call last):
  File "/share/sqlmap/lib/request/connect.py", line 519, in getPage
    ws.connect(url, header=("%s: %s" % _ for _ in headers.items() if _[0] not in ("Host",)), cookie=cookie)  # WebSocket will add Host field of headers automatically
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/****/.local/lib/python3.11/site-packages/websocket/_core.py", line 249, in connect
    self.sock, addrs = connect(url, self.sock_opt, proxy_info(**options),
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/****/.local/lib/python3.11/site-packages/websocket/_http.py", line 130, in connect
    sock = _open_socket(addrinfo_list, options.sockopt, options.timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/****/.local/lib/python3.11/site-packages/websocket/_http.py", line 197, in _open_socket
    raise error
  File "/home/****/.local/lib/python3.11/site-packages/websocket/_http.py", line 185, in _open_socket
    sock.connect(address)
  File "/share/sqlmap/thirdparty/socks/socks.py", line 377, in connect
    self.__negotiatesocks5(destpair[0], destpair[1])
  File "/share/sqlmap/thirdparty/socks/socks.py", line 236, in __negotiatesocks5
    resp = self.__recvall(4)
           ^^^^^^^^^^^^^^^^^
  File "/share/sqlmap/thirdparty/socks/socks.py", line 145, in __recvall
    data = self.recv(count)
           ^^^^^^^^^^^^^^^^
TimeoutError: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "sqlmap", line 222, in main
    start()
  File "/share/sqlmap/lib/core/decorators.py", line 80, in _
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
  File "/share/sqlmap/lib/controller/controller.py", line 436, in start
    if not checkConnection(suppressOutput=conf.forms):
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/share/sqlmap/lib/controller/checks.py", line 1489, in checkConnection
    page, headers, _ = Request.queryPage(content=True, noteResponseTime=False)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/share/sqlmap/lib/core/decorators.py", line 80, in _
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
  File "/share/sqlmap/lib/request/connect.py", line 1542, 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 "/share/sqlmap/lib/request/connect.py", line 907, in getPage
    return Connect._retryProxy(**kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/share/sqlmap/lib/request/connect.py", line 222, in _retryProxy
    return Connect._getPageProxy(**kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/share/sqlmap/lib/request/connect.py", line 161, in _getPageProxy
    return Connect.getPage(**kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/share/sqlmap/lib/request/connect.py", line 519, in getPage
    ws.connect(url, header=("%s: %s" % _ for _ in headers.items() if _[0] not in ("Host",)), cookie=cookie)  # WebSocket will add Host field of headers automatically
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/****/.local/lib/python3.11/site-packages/websocket/_core.py", line 253, in connect
    self.handshake_response = handshake(self.sock, url, *addrs, **options)
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/****/.local/lib/python3.11/site-packages/websocket/_handshake.py", line 57, in handshake
    status, resp = _get_resp_headers(sock)
                   ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/****/.local/lib/python3.11/site-packages/websocket/_handshake.py", line 147, in _get_resp_headers
    response_body = sock.recv(int(resp_headers['content-length']))  # read the body of the HTTP error message response and include it in the exception
                                  ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
KeyError: 'content-length'

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions