mirror of
https://github.com/nmap/nmap.git
synced 2025-12-29 02:49:01 +00:00
fixed parsing failure resulting in empty results due to additional whitespace
issue in regex of http-robtex-shared-ns.nse.
This commit is contained in:
@@ -41,7 +41,7 @@ categories = {
|
||||
function parse_robtex_response (data)
|
||||
local result = {};
|
||||
|
||||
for linkhref, ns, domain in string.gmatch(data, "<a href=\"(.-)%.html#shared\" title=\"using ns (.-)\">(.-)</a>") do
|
||||
for linkhref, ns, domain in string.gmatch(data, "<a href=\"(.-)%.html#shared\"%s*title=\"using ns (.-)\">(.-)</a>") do
|
||||
if not table.contains(result, domain) then
|
||||
table.insert(result, domain);
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user