mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +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:
parent
7bb32b409f
commit
a285f82299
8 changed files with 25 additions and 34 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue