sqlmapproject/sqlmap · error · OperationalError

Firebird login failed (%s)

Error message

Firebird login failed (%s)

What it means

Error "Firebird login failed (%s)" thrown in sqlmapproject/sqlmap.

Source

Thrown at extra/dbwire/firebird.py:783

    try:
        public_key, private_key = _srp_client_seed()
        packet = (_pack_int(_op_connect) + _pack_int(_op_attach) + _pack_int(3) + _pack_int(1) +
                  _pack_bytes(filename) + _pack_int(len(_PROTOCOLS)) +
                  _pack_bytes(_uid(user, plugin, plugin_list, public_key, True)))
        for p in _PROTOCOLS:
            packet += _unhex(p)
        wire.send(packet)

        _authenticate(wire, user, password, public_key, private_key)
        connection = Connection(wire, filename, user, password)
        _attach(connection, wire, user)
        handshake_done(sock)
    except (DatabaseError, InterfaceError):
        wire.close()
        raise
    except Exception as ex:
        wire.close()
        raise OperationalError("Firebird login failed (%s)" % ex)
    return connection

def _unhex(s):
    return bytes(bytearray(int(s[i:i + 2], 16) for i in range(0, len(s), 2)))

def _normalize_user(user):
    if len(user) >= 2 and user[0] == '"' and user[-1] == '"':
        return user[1:-1].replace('""', '"')
    return user.upper()

def _authenticate(wire, user, password, public_key, private_key):
    op = wire.recv_int()
    while op == _op_dummy:
        op = wire.recv_int()
    if op == _op_reject:
        raise OperationalError("Firebird connection rejected")
    if op == _op_response:
        _parse_response(wire)  # will raise the server error

View on GitHub (pinned to 0a35b20e39)

When it happens

Trigger: Thrown at extra/dbwire/firebird.py:783 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/b5813727f8f6d1c6. Report an issue: GitHub.