From 6827d787b4e3f171d0503e35d1d784ca2d44bfab Mon Sep 17 00:00:00 2001 From: fyodor Date: Wed, 28 Dec 2011 01:52:54 +0000 Subject: [PATCH] In my tests, doubling the timeout only increased the number of properly detected telnet servers from 669 to 679. That is only an increase of ~1.5%, so I'm dialing it back down to 7.5s --- scripts/telnet-encryption.nse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/telnet-encryption.nse b/scripts/telnet-encryption.nse index 983fc1c17..7ceb39b6c 100644 --- a/scripts/telnet-encryption.nse +++ b/scripts/telnet-encryption.nse @@ -67,7 +67,7 @@ action = function(host, port) local data = bin.pack("H", "FFFD26FFFB26") local result - socket:set_timeout(10000) + socket:set_timeout(7500) status, result = socket:send(data) if ( not(status) ) then return ("\n ERROR: Failed to send packet: %s"):format(result)