From ea33a885a3fc0dcf7b0584fb12cd38eea07625f4 Mon Sep 17 00:00:00 2001 From: fyodor Date: Wed, 28 Dec 2011 01:18:25 +0000 Subject: [PATCH] increase the timeout from 5s to 10s because many servers seem to respond slowly --- scripts/telnet-encryption.nse | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/telnet-encryption.nse b/scripts/telnet-encryption.nse index a78bd12e6..983fc1c17 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(5000) + socket:set_timeout(10000) status, result = socket:send(data) if ( not(status) ) then return ("\n ERROR: Failed to send packet: %s"):format(result) @@ -90,4 +90,4 @@ action = function(host, port) end end return "\n Telnet server does not support encryption" -end \ No newline at end of file +end