mirror of
https://github.com/nmap/nmap.git
synced 2026-08-27 20:05:30 +00:00
fix http-config-backup print issues
This commit is contained in:
parent
f522f0cc9d
commit
8f03d98c9e
1 changed files with 5 additions and 1 deletions
|
|
@ -230,7 +230,11 @@ action = function (host, port)
|
|||
end
|
||||
end
|
||||
|
||||
table.insert(backups, url_path .. " " .. response["status-line"]);
|
||||
-- Trim the trailing CRLF: response["status-line"] keeps it, and
|
||||
-- format_output's line splitter cannot step over the \r, so a raw
|
||||
-- status-line renders every entry as a blank row.
|
||||
table.insert(backups, url_path .. " "
|
||||
.. response["status-line"]:match("^[^\r\n]+"));
|
||||
else
|
||||
stdnse.debug1("%s: found but not matching: %s",
|
||||
host.targetname or host.ip, url_path);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue