Skip to content

Unhandled exception (#11b14bf2) #6045

@sqlmapreporter

Description

@sqlmapreporter
Running version: 1.10.2#stable
Python version: 3.13.12
Operating system: Linux-6.18.12+kali-amd64-x86_64-with-glibc2.42
Command line: /usr/bin/sqlmap -r /home/****/桌面/3 --level=5 --risk=3 -temper=space2comment,randomcase,charunicodeencode
Technique: None
Back-end DBMS: None
Traceback (most recent call last):
  File "sqlmap", line 222, in main
    start()
    ~~~~~^^
  File "/share/sqlmap/lib/core/decorators.py", line 99, 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 1499, in checkConnection
    page, headers, _ = Request.queryPage(content=True, noteResponseTime=False)
                       ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/share/sqlmap/lib/core/decorators.py", line 99, in _
    result = f(*args, **kwargs)
  File "/share/sqlmap/lib/request/connect.py", line 1593, 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 447, in getPage
    headers = forgeHeaders({HTTP_HEADER.COOKIE: cookie, HTTP_HEADER.USER_AGENT: ua, HTTP_HEADER.REFERER: referer, HTTP_HEADER.HOST: getHeader(dict(conf.httpHeaders), HTTP_HEADER.HOST) or getHostHeader(url)}, base=None if target else {})
  File "/share/sqlmap/lib/core/decorators.py", line 125, in _
    result = f(*args, **kwargs)
  File "/share/sqlmap/lib/request/basic.py", line 69, in forgeHeaders
    if "Accept" not in headers:
                       ^^^^^^^
UnboundLocalError: cannot access local variable 'headers' where it is not associated with a value

Metadata

Metadata

Assignees

No one assigned

    Labels

    FUBARF*cked Up Beyond All Recognition

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions