1
0
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:
patrik
2012-06-17 18:10:34 +00:00
parent 33e9bf8d7b
commit fefb5f8445

View File

@@ -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