-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Closed
Milestone
Description
Running version: 1.7.1.1#dev
Python version: 3.10.6
Operating system: Linux-5.15.0-56-generic-x86_64-with-glibc2.35
Command line: sqlmap.py -u ****************************** --random-agent --batch -o --banner --beep --auth-type ***** --auth-cred *********** --risk 3 --level 5 --ignore-code 401
Technique: None
Back-end DBMS: None
Traceback (most recent call last):
File "lib/request/connect.py", line 622, in getPage
conn = _urllib.request.urlopen(req)
File "/usr/lib/python3.10/urllib/request.py", line 216, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.10/urllib/request.py", line 525, in open
response = meth(req, response)
File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response
response = self.parent.error(
File "/usr/lib/python3.10/urllib/request.py", line 557, in error
result = self._call_chain(*args)
File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
result = func(*args)
File "/usr/lib/python3.10/urllib/request.py", line 1056, in http_error_401
response = self.http_error_auth_reqed('www-authenticate',
File "lib/request/basicauthhandler.py", line 38, in http_error_auth_reqed
return _urllib.request.HTTPBasicAuthHandler.http_error_auth_reqed(self, auth_header, host, req, headers)
File "/usr/lib/python3.10/urllib/request.py", line 1005, in http_error_auth_reqed
return self.retry_http_basic_auth(host, req, realm)
File "/usr/lib/python3.10/urllib/request.py", line 1020, in retry_http_basic_auth
return self.parent.open(req, timeout=req.timeout)
File "/usr/lib/python3.10/urllib/request.py", line 525, in open
response = meth(req, response)
File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response
response = self.parent.error(
File "/usr/lib/python3.10/urllib/request.py", line 557, in error
result = self._call_chain(*args)
File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
result = func(*args)
File "/usr/lib/python3.10/urllib/request.py", line 1056, in http_error_401
response = self.http_error_auth_reqed('www-authenticate',
File "lib/request/basicauthhandler.py", line 34, in http_error_auth_reqed
raise _urllib.error.HTTPError(req.get_full_url(), 401, "basic auth failed", headers, None)
urllib.error.HTTPError: HTTP Error 401: basic auth failed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "sqlmap.py", line 222, in main
start()
File "lib/core/decorators.py", line 80, in _
result = f(*args, **kwargs)
File "lib/controller/controller.py", line 590, in start
injection = checkSqlInjection(place, parameter, value)
File "lib/controller/checks.py", line 506, 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 1516, in queryPage
_, headers, code = Connect.getPage(url=uri, get=get, post=post, method=method, cookie=cookie, ua=ua, referer=referer, host=host, silent=silent, auxHeaders=auxHeaders, raise404=raise404, skipRead=(kb.nullConnection == NULLCONNECTION.SKIP_READ))
File "lib/request/connect.py", line 756, in getPage
logHeaders = "".join(getUnicode(responseHeaders.headers)).strip()
AttributeError: 'HTTPMessage' object has no attribute 'headers'