mirror of
https://github.com/nmap/nmap.git
synced 2025-12-26 01:19:03 +00:00
Use explicit endianness in pack/unpack.
This commit is contained in:
@@ -3121,7 +3121,7 @@ Auth = {
|
||||
local c = bit.bxor( string.byte( i ), xormask )
|
||||
local m1= bit.band( bit.rshift( c, 4 ), 0x0F0F )
|
||||
local m2= bit.band( bit.lshift( c, 4 ), 0xF0F0 )
|
||||
return bin.pack("S", bit.bor( m1, m2 ) )
|
||||
return bin.pack("<S", bit.bor( m1, m2 ) )
|
||||
end)
|
||||
end,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user