diff --git a/CHANGELOG b/CHANGELOG
index e485fb430..8cfd2e090 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,5 +1,9 @@
# Nmap Changelog ($Id$); -*-text-*-
+o [GH#694][NSE] ike-version now outputs information about supported attributes and
+ unknown vendor ids. Also, a new fingerprint for FortiGate VPNs was submitted
+ by Alexis La Goutte. [Daniel Miller]
+
o [GH#700] Enabled support for TLS SNI on the Windows platform. [nnposter]
o [GH#686] Script tls-ticketbleed checks for the Ticketbleed vulnerability
diff --git a/nselib/ike.lua b/nselib/ike.lua
index f6f398666..c16255b9d 100644
--- a/nselib/ike.lua
+++ b/nselib/ike.lua
@@ -210,6 +210,7 @@ local function lookup(vendor_ids)
vendor = nil,
attribs = {},
}
+ local unmatched = {}
local status, fingerprints
status, fingerprints = load_fingerprints()
@@ -242,10 +243,15 @@ local function lookup(vendor_ids)
stdnse.debug2("IKE: Attribute: %s matches %s", vendor_id, row.text)
break
end
+ else
+ unmatched[#unmatched+1] = vendor_id
end
end
end
end
+ if next(unmatched) then
+ info.unknown_ids = unmatched
+ end
---------------------------------------------------
diff --git a/scripts/ike-version.nse b/scripts/ike-version.nse
index fbb9bbd02..1db3db520 100644
--- a/scripts/ike-version.nse
+++ b/scripts/ike-version.nse
@@ -19,8 +19,23 @@ Main and Aggressive Mode and sends multiple transforms per request.
--
-- @output
-- PORT STATE SERVICE REASON VERSION
--- 500/udp open isakmp udp-response Cisco VPN Concentrator 3000 4.0.7
--- Service Info: OS: pSOS+; Device: VPN; CPE: cpe:/h:cisco:concentrator
+-- 500/udp open isakmp udp-response Fortinet FortiGate v5
+-- | ike-version:
+-- | vendor_id: Fortinet FortiGate v5
+-- | attributes:
+-- | Dead Peer Detection v1.0
+-- |_ XAUTH
+-- Service Info: OS: Fortigate v5; Device: Network Security Appliance; CPE: cpe:/h:fortinet:fortigate
+--
+-- @xmloutput
+--