From 6832c984543536d005a4cf28afdc82164db3ba73 Mon Sep 17 00:00:00 2001 From: david Date: Mon, 2 Dec 2013 22:47:09 +0000 Subject: [PATCH] Try only 64 ciphers at a time in ssl-enum-ciphers. An off-by-one error meant that we tried 65 at a time. The number 64 came up in a discussion of limitations of running against IIS. http://seclists.org/nmap-dev/2012/q3/167 --- scripts/ssl-enum-ciphers.nse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ssl-enum-ciphers.nse b/scripts/ssl-enum-ciphers.nse index f74709e83..ae4ab8761 100644 --- a/scripts/ssl-enum-ciphers.nse +++ b/scripts/ssl-enum-ciphers.nse @@ -830,7 +830,7 @@ local function keys_in_chunks(t) for k, _ in pairs(t) do c = c+1 ret[b][c] = k - if c > 64 then + if c >= 64 then c = 0 b = b + 1 ret[b] = {}