mirror of
https://github.com/nmap/nmap.git
synced 2026-01-07 06:59:03 +00:00
Use the local read (which obeys the "lines" and "bytes" options) intead
of sd:receive in comm.opencon, which is used by comm.get_banner.
This commit is contained in:
@@ -215,7 +215,7 @@ local function opencon(host, port, protocol, data, opts)
|
||||
end
|
||||
|
||||
local response, early_resp;
|
||||
if opts and opts.recv_before then status, early_resp = sd:receive() end
|
||||
if opts and opts.recv_before then status, early_resp = read(sd, opts) end
|
||||
if #data > 0 then
|
||||
sd:send(data)
|
||||
status, response = sd:receive()
|
||||
|
||||
Reference in New Issue
Block a user