1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Correctly decode MySql error packets.

This commit is contained in:
dmiller
2024-01-29 18:31:38 +00:00
parent 84dcd2c915
commit cc5759a6d2

View File

@@ -275,7 +275,8 @@ function loginRequest( socket, params, username, password, salt )
response.sqlstate, pos = string.unpack( "c5", packet, pos ) response.sqlstate, pos = string.unpack( "c5", packet, pos )
end end
response.errormessage, pos = string.unpack( "z", packet, pos ) -- Error message is a RestOfPacketString
response.errormessage = string.sub(packet, pos)
return false, response.errormessage return false, response.errormessage
else else