From 7307d28e885773c0ebc2473aba4c34ad0195fed6 Mon Sep 17 00:00:00 2001 From: david Date: Mon, 19 Jan 2009 21:55:23 +0000 Subject: [PATCH] Let daytime.nse run against both TCP and UDP port 13. It only did UDP before. RFC 867 says the service runs over both protocols. --- scripts/daytime.nse | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/daytime.nse b/scripts/daytime.nse index 536d1bd51..4c468668d 100644 --- a/scripts/daytime.nse +++ b/scripts/daytime.nse @@ -11,10 +11,10 @@ categories = {"discovery"} require "comm" require "shortport" -portrule = shortport.port_or_service(13, "daytime", "udp") +portrule = shortport.port_or_service(13, "daytime", {"tcp", "udp"}) action = function(host, port) - local status, result = comm.exchange(host, port, "dummy", {lines=1, proto="udp"}) + local status, result = comm.exchange(host, port, "dummy", {lines=1, proto=port.proto}) if status then return "Daytime: " .. result