mirror of
https://github.com/nmap/nmap.git
synced 2026-07-11 10:44:33 +00:00
Fix endianness bug making RFB 3.3 not detect auth type
This commit is contained in:
parent
6c7655c24f
commit
56d71fe6df
1 changed files with 2 additions and 2 deletions
|
|
@ -222,7 +222,7 @@ VNC = {
|
|||
return false, "VNC:handshake failed to receive security data"
|
||||
end
|
||||
|
||||
vncsec.types[1] = select(2, bin.unpack("I", tmp) )
|
||||
vncsec.types[1] = select(2, bin.unpack(">I", tmp) )
|
||||
self.vncsec = vncsec
|
||||
|
||||
-- do we have an invalid security type, if so we need to handle an
|
||||
|
|
@ -355,7 +355,7 @@ VNC = {
|
|||
return false, "Failed to retrieve authentication status from server"
|
||||
end
|
||||
|
||||
if ( select(2, bin.unpack("I", result) ) ~= 0 ) then
|
||||
if ( select(2, bin.unpack(">I", result) ) ~= 0 ) then
|
||||
return false, "Authentication failed"
|
||||
end
|
||||
return true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue