From f9ddf0fca695bf728b74f18d76bcce7383dd3748 Mon Sep 17 00:00:00 2001 From: dmiller Date: Thu, 16 Aug 2012 02:59:58 +0000 Subject: [PATCH] Update ssl-known-key to use structured output --- scripts/ssl-known-key.nse | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/scripts/ssl-known-key.nse b/scripts/ssl-known-key.nse index c05a83d5b..003f56cb0 100644 --- a/scripts/ssl-known-key.nse +++ b/scripts/ssl-known-key.nse @@ -28,7 +28,15 @@ include with Nmap) list. -- @output -- PORT STATE SERVICE REASON -- 443/tcp open https syn-ack --- |_ssl-known-key: 00:28:E7:D4:9C:FA:4A:A5:98:4F:E4:97:EB:73:48:56:07:87:E4:96 is in the database with reason Little Black Box 0.1. +-- |_ssl-known-key: Found in Little Black Box 0.1 (certificate hash: 00:28:E7:D4:9C:FA:4A:A5:98:4F:E4:97:EB:73:48:56:07:87:E4:96) +-- +-- @xmloutput +-- author = "Mak Kolybabi" license = "Same as Nmap--See http://nmap.org/book/man-legal.html" @@ -131,5 +139,5 @@ action = function(host, port) return end - return "Found in " .. section .. " (certificate hash: " .. fingerprint .. ")" + return {section=section, fingerprint=fingerprint}, "Found in " .. section .. " (certificate hash: " .. fingerprint .. ")" end