function read_query( packet ) if string.byte(packet) == proxy.COM_QUERY then proxy.queries:append(1, packet ) proxy.queries:append(2, string.char(proxy.COM_QUERY) .. "SHOW GLOBAL STATUS" ) return proxy.PROXY_SEND_QUERY end end function read_query_result(inj) if (inj.type == 2) then local t = {} for row in inj.resultset.rows do if row[1] == nil then print("Bug here - name") os.exit() end if row[2] == nil then print("Bug here - value") os.exit() end print("Header: " .. row[1] .. " Value: " .. row[2] ) end return proxy.PROXY_IGNORE_RESULT end end