mirror of
https://github.com/nmap/nmap.git
synced 2025-12-10 09:49:05 +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:
@@ -47,7 +47,7 @@ action = function(host, port)
|
||||
|
||||
-- Ask proxy to open www.google.com
|
||||
local req = "GET http://www.google.com HTTP/1.0\r\nHost: www.google.com\r\n\r\n"
|
||||
local status, result = comm.exchange(host, port, req, {proto=port.protocol, timeout=10000})
|
||||
local status, result = comm.exchange(host, port, req, {lines=1,proto=port.protocol, timeout=10000})
|
||||
|
||||
if not status then
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user