1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-24 00:19:01 +00:00

Fix http-robtex-reverse-ip and make it a bit more resilient

This commit is contained in:
dmiller
2016-01-15 05:55:15 +00:00
parent f8be8feade
commit 709fcfbefa

View File

@@ -48,7 +48,8 @@ function parse_robtex_response(data)
local data = data:match("<span id=\"shared_ma\">.-<ol.->(.-)</ol>")
local result = {}
if data then
for domain in data:gmatch("<li><code>(.-)</code></li>") do
for domain in data:gmatch("<li[^>]*>(.-)</li>") do
domain = domain:gsub("<[^>]+>","")
table.insert(result, domain)
end
end