From 351eea1986c501c2453f1fcb21000f359ed6d176 Mon Sep 17 00:00:00 2001 From: nnposter Date: Tue, 14 Apr 2020 18:11:23 +0000 Subject: [PATCH] PROTOCOL_IDS is a table. Fixes #1999, closes #2005 --- CHANGELOG | 3 +++ nselib/ike.lua | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 6f7e715ea..937db48ef 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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] diff --git a/nselib/ike.lua b/nselib/ike.lua index 18d16e4c9..d3278cb1e 100644 --- a/nselib/ike.lua +++ b/nselib/ike.lua @@ -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 )