mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 12:41:29 +00:00
Allow MessageID UUIDs without "urn:" prefix. Fixes #3123
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
#Nmap Changelog ($Id$); -*-text-*-
|
#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]
|
Nmap 7.97 [2025-05-12]
|
||||||
|
|
||||||
o [Zenmap][GH#3087] Fix a crash when starting a scan on Windows in locales that
|
o [Zenmap][GH#3087] Fix a crash when starting a scan on Windows in locales that
|
||||||
|
|||||||
@@ -134,7 +134,7 @@ Decoders = {
|
|||||||
local response = {}
|
local response = {}
|
||||||
|
|
||||||
-- extracts the messagid, so we can check if we already got a 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 unable to parse msgid return nil
|
||||||
if ( not(response.msgid) ) then
|
if ( not(response.msgid) ) then
|
||||||
|
|||||||
Reference in New Issue
Block a user