PROTOCOL_IDS is a table. Fixes #1999, closes #2005

This commit is contained in:
nnposter 2020-04-14 18:11:23 +00:00
parent 5b6645e09d
commit 351eea1986
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,8 @@
#Nmap Changelog ($Id$); -*-text-*-
o [NSE][GH#1999][GH#2005] IKE library was not properly populating the protocol
number in aggressive mode requests. [luc-x41]
o [GH#1963] Added service fingerprinting for MySQL 8.x, Microsoft SQL
Server 2019, MariaDB, and Crate.io CrateDB. Updated PostreSQL coverage and
added specific detection of recent versions running in Docker. [Tom Sellers]

View file

@ -405,7 +405,7 @@ local function generate_aggressive(port, protocol, id, diffie)
0x00, -- Next Payload (None)
#id + 4 + 4, -- Payload length
0x03, -- ID Type (USER_FQDN)
PROTOCOL_IDS(protocol), -- Protocol ID (UDP)
PROTOCOL_IDS[protocol], -- Protocol ID (UDP)
port) -- Port (500)
.. id
)