日期:2014-05-16 浏览次数:20993 次
proxy.queries:append(1, proto.to_response_packet({ username = "root", response = password.scramble(s.scramble_buffer, password.hash("secret")) }) ) return proxy.PROXY_SEND_QUERY
.server_capabilities has to be set
local protocol_41_default_capabilities = 8+512+ 32768 --8 + -- _CONNECT_WITH_DB --512 + -- _PROTOCOL_41 --32768 -- _SECURE_CONNECTION
proxy.queries:append(1, proto.to_response_packet({ username = "root", response = password.scramble(scramble_buffer, password.hash("root")), server_capabilities=protocol_41_default_capabilities }) )