From d5e5d8c5bd49cf532cabd928c1cf8286ee542c7e Mon Sep 17 00:00:00 2001 From: david Date: Tue, 31 Jul 2012 20:57:30 +0000 Subject: [PATCH] Remove "Server time" from ssl-date output. This makes it match http-date more closely. --- scripts/ssl-date.nse | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ssl-date.nse b/scripts/ssl-date.nse index eb1e95056..f021be9db 100644 --- a/scripts/ssl-date.nse +++ b/scripts/ssl-date.nse @@ -27,7 +27,7 @@ portrule = shortport.ssl -- @output -- PORT STATE SERVICE REASON -- 443/tcp open https syn-ack --- |_ssl-date: Server time 2012-07-30 09:46:07 GMT; 0s from local time. +-- |_ssl-date: 2012-07-30 09:46:07 GMT; 0s from local time. -- -- @@ -141,7 +141,7 @@ action = function(host, port) local result status, result = extract_time(response) if status then - return string.format("Server time %s GMT; %s from local time.", + return string.format("%s GMT; %s from local time.", os.date("%Y-%m-%d %H:%M:%S",result), stdnse.format_difftime(os.date("!*t",result),os.date("!*t"))) end