From 822b2d593a981360e33ab2eeead49a9ee315c2a1 Mon Sep 17 00:00:00 2001 From: dmiller Date: Sun, 26 Jun 2016 04:15:15 +0000 Subject: [PATCH] Don't run tor-consensus-checker on private/reserved IPs --- scripts/tor-consensus-checker.nse | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/tor-consensus-checker.nse b/scripts/tor-consensus-checker.nse index 3b0f3b92e..38a629622 100644 --- a/scripts/tor-consensus-checker.nse +++ b/scripts/tor-consensus-checker.nse @@ -1,4 +1,5 @@ local http = require "http" +local ipOps = require "ipOps" local stdnse = require "stdnse" local string = require "string" local nmap = require "nmap" @@ -43,7 +44,7 @@ hostrule = function(host) if nmap.registry.tornode and not(nmap.registry.tornode.connect) then return false end - return true + return not ipOps.isPrivate(host.ip) end function get_consensus(server)