From 709fcfbefa56a973d84fdd9c3c09e96ba15334fe Mon Sep 17 00:00:00 2001 From: dmiller Date: Fri, 15 Jan 2016 05:55:15 +0000 Subject: [PATCH] Fix http-robtex-reverse-ip and make it a bit more resilient --- scripts/http-robtex-reverse-ip.nse | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/http-robtex-reverse-ip.nse b/scripts/http-robtex-reverse-ip.nse index 7a7865f55..7f5d35e83 100644 --- a/scripts/http-robtex-reverse-ip.nse +++ b/scripts/http-robtex-reverse-ip.nse @@ -48,7 +48,8 @@ function parse_robtex_response(data) local data = data:match(".-(.-)") local result = {} if data then - for domain in data:gmatch("
  • (.-)
  • ") do + for domain in data:gmatch("]*>(.-)") do + domain = domain:gsub("<[^>]+>","") table.insert(result, domain) end end