mirror of
https://github.com/nmap/nmap.git
synced 2025-12-17 05:09:00 +00:00
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
This commit is contained in:
@@ -67,7 +67,7 @@ action = function(host, port)
|
|||||||
local data = bin.pack("H", "FFFD26FFFB26")
|
local data = bin.pack("H", "FFFD26FFFB26")
|
||||||
local result
|
local result
|
||||||
|
|
||||||
socket:set_timeout(10000)
|
socket:set_timeout(7500)
|
||||||
status, result = socket:send(data)
|
status, result = socket:send(data)
|
||||||
if ( not(status) ) then
|
if ( not(status) ) then
|
||||||
return ("\n ERROR: Failed to send packet: %s"):format(result)
|
return ("\n ERROR: Failed to send packet: %s"):format(result)
|
||||||
|
|||||||
Reference in New Issue
Block a user