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

Allow MessageID UUIDs without "urn:" prefix. Fixes #3123

This commit is contained in:
nnposter
2025-05-28 17:48:11 +00:00
parent b9f73923bd
commit b35a88ac60
2 changed files with 4 additions and 1 deletions

View File

@@ -1,5 +1,8 @@
#Nmap Changelog ($Id$); -*-text-*-
o [NSE][GH#3123] WS-Discovery parsing would error out if the MessageID UUID
was not prefixed with "urn:". [nnposter]
Nmap 7.97 [2025-05-12]
o [Zenmap][GH#3087] Fix a crash when starting a scan on Windows in locales that

View File

@@ -134,7 +134,7 @@ Decoders = {
local response = {}
-- extracts the messagid, so we can check if we already got a response
response.msgid = data:match("<[^:]*:MessageID>urn:uuid:([^<]*)</[^:]*:MessageID>")
response.msgid = data:match("<%w+:MessageID>[%w:]-%f[^>:]uuid:([^<]*)</%w+:MessageID>")
-- if unable to parse msgid return nil
if ( not(response.msgid) ) then