1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-16 04:39:03 +00:00

Fix bugs where pos return value of bin.unpack was ignored

This commit is contained in:
dmiller
2016-07-21 17:05:24 +00:00
parent be3cd99dbc
commit 963011520f
4 changed files with 5 additions and 4 deletions

View File

@@ -932,7 +932,8 @@ function get_host_info_from_security_blob(security_blob)
break
elseif ( av_id == NTLM_AV_ID_VALUES.MsvAvTimestamp ) then
-- this is a FILETIME value (see [MS-DTYP]), representing the time in 100-ns increments since 1/1/1601
ntlm_challenge[ friendly_name ] = bin.unpack( "<L", value )
local _
_, ntlm_challenge[ friendly_name ] = bin.unpack( "<L", value )
elseif ( friendly_name ) then
ntlm_challenge[ friendly_name ] = unicode.utf16to8( value )
end