From ad2eb47aa760ae67baa4ab1c80b70d12fd83c7a8 Mon Sep 17 00:00:00 2001 From: dmiller Date: Tue, 18 Feb 2020 19:21:46 +0000 Subject: [PATCH] Disable Robtex NSE scripts due to API changes. --- scripts/hostmap-robtex.nse | 9 +++++++++ scripts/http-robtex-reverse-ip.nse | 8 ++++++++ scripts/http-robtex-shared-ns.nse | 9 +++++++++ 3 files changed, 26 insertions(+) diff --git a/scripts/hostmap-robtex.nse b/scripts/hostmap-robtex.nse index 6ad7af325..66035a349 100644 --- a/scripts/hostmap-robtex.nse +++ b/scripts/hostmap-robtex.nse @@ -5,6 +5,8 @@ local slaxml = require "slaxml" description = [[ Discovers hostnames that resolve to the target's IP address by querying the online Robtex service at http://ip.robtex.com/. + +*TEMPORARILY DISABLED* due to changes in Robtex's API. See https://www.robtex.com/api/ ]] --- @@ -31,6 +33,12 @@ categories = { } +prerule = function() return true end +action = function() + return "*TEMPORARILY DISABLED* due to changes in Robtex's API. See https://www.robtex.com/api/" +end + +--[[ --- Scrape domains sharing target host ip from robtex website -- -- //section[@id="x_shared"]//li//text() @@ -74,3 +82,4 @@ action = function (host) end return output_tab end +]]-- diff --git a/scripts/http-robtex-reverse-ip.nse b/scripts/http-robtex-reverse-ip.nse index 3c2867d92..66bf5e52a 100644 --- a/scripts/http-robtex-reverse-ip.nse +++ b/scripts/http-robtex-reverse-ip.nse @@ -5,6 +5,8 @@ local table = require "table" description = [[ Obtains up to 100 forward DNS names for a target IP address by querying the Robtex service (https://www.robtex.com/ip-lookup/). + +*TEMPORARILY DISABLED* due to changes in Robtex's API. See https://www.robtex.com/api/ ]] --- @@ -57,6 +59,11 @@ end prerule = function() return stdnse.get_script_args("http-robtex-reverse-ip.host") ~= nil end +action = function() + return "*TEMPORARILY DISABLED* due to changes in Robtex's API. See https://www.robtex.com/api/" +end + +--[[ action = function(host, port) local target = stdnse.get_script_args("http-robtex-reverse-ip.host") @@ -71,3 +78,4 @@ action = function(host, port) return stdnse.format_output(true, domains) end end +]]-- diff --git a/scripts/http-robtex-shared-ns.nse b/scripts/http-robtex-shared-ns.nse index 823c605fd..5dc17dbd6 100644 --- a/scripts/http-robtex-shared-ns.nse +++ b/scripts/http-robtex-shared-ns.nse @@ -7,6 +7,8 @@ description = [[ Finds up to 100 domain names which use the same name server as the target by querying the Robtex service at http://www.robtex.com/dns/. The target must be specified by DNS name, not IP address. + +*TEMPORARILY DISABLED* due to changes in Robtex's API. See https://www.robtex.com/api/ ]] --- @@ -30,6 +32,12 @@ author = "Arturo 'Buanzo' Busleiman" license = "Same as Nmap--See https://nmap.org/book/man-legal.html" categories = {"discovery", "safe", "external"} +prerule = function() return true end +action = function() + return "*TEMPORARILY DISABLED* due to changes in Robtex's API. See https://www.robtex.com/api/" +end + +--[[ local function unescape(s) return string.gsub(s, "\\x(%x%x)", function(hex) return string.char(tonumber(hex, 16)) @@ -100,3 +108,4 @@ action = function(host) return stdnse.format_output(true, domains) end end +]]--