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:
@@ -275,7 +275,8 @@ function loginRequest( socket, params, username, password, salt )
|
||||
response.sqlstate, pos = string.unpack( "c5", packet, pos )
|
||||
end
|
||||
|
||||
response.errormessage, pos = string.unpack( "z", packet, pos )
|
||||
-- Error message is a RestOfPacketString
|
||||
response.errormessage = string.sub(packet, pos)
|
||||
|
||||
return false, response.errormessage
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user