sqlmapproject/sqlmap · error · OperationalError
invalid MonetDB challenge
Error message
invalid MonetDB challenge
What it means
Error "invalid MonetDB challenge" thrown in sqlmapproject/sqlmap.
Source
Thrown at extra/dbwire/monetdb.py:66
def _putblock(sock, text):
data = text.encode("utf-8")
off = 0
while True:
chunk = data[off:off + _MAX_BLOCK]
off += _MAX_BLOCK
last = off >= len(data)
try:
sock.sendall(struct.pack("<H", (len(chunk) << 1) | (1 if last else 0)) + chunk)
except (socket.error, OSError) as ex:
raise connection_lost(ex)
if last:
break
def _challenge_response(challenge, user, password, database):
parts = challenge.split(":")
if len(parts) < 7 or parts[-1] != "":
raise OperationalError("invalid MonetDB challenge")
salt, server_type, protocol, hashes = parts[0], parts[1], parts[2], parts[3]
if protocol != "9":
raise NotSupportedError("only MAPI protocol v9 is supported")
if server_type == "merovingian": # proxy stage: authenticate as merovingian, real creds go to the mserver
user, password = "merovingian", ""
pwalgo = parts[5]
try:
password = hashlib.new(pwalgo, password.encode("utf-8")).hexdigest()
except ValueError:
raise NotSupportedError("unsupported MonetDB password algorithm: %s" % pwalgo)
pwhash = None
for algo in hashes.split(","):
try:
h = hashlib.new(algo)
except ValueError:
continue
h.update(password.encode("utf-8"))
h.update(salt.encode("utf-8"))View on GitHub (pinned to 0a35b20e39)
When it happens
Trigger: Thrown at extra/dbwire/monetdb.py:66 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of sqlmapproject/sqlmap@0a35b20e39 (2026-08-26).
Data as JSON: /api/errors/59265831c735fe26.
Report an issue: GitHub.