mirror of
https://github.com/nmap/nmap.git
synced 2026-02-04 20:46:33 +00:00
o The NSE Comm library now defaults to trying to read as many bytes as are
available rather than lines if neither the "bytes" nor "lines" options are given. Thanks to Brandon for reporting a problem which he noticed in the dns-test-open-recursion script. [Kris]
This commit is contained in:
@@ -79,7 +79,7 @@ portrule = shortport.port_or_service({80, 8080}, "http")
|
||||
action = function(host, port)
|
||||
local cmd = "TRACE / HTTP/1.0\r\n\r\n"
|
||||
|
||||
local status, response = comm.exchange(host, port, cmd, {timeout=5000})
|
||||
local status, response = comm.exchange(host, port, cmd, {lines=1,timeout=5000})
|
||||
|
||||
if not status then
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user