diff --git a/scripts/dns-check-zone.nse b/scripts/dns-check-zone.nse index 5d4f3a6a9..5487c5a76 100644 --- a/scripts/dns-check-zone.nse +++ b/scripts/dns-check-zone.nse @@ -1,6 +1,7 @@ local dns = require "dns" local stdnse = require "stdnse" local table = require "table" +local ipOps = require "ipOps" description = [[ Checks DNS zone configuration against best practices, including RFC 1912. @@ -130,7 +131,7 @@ local dns_checks = { return false, ("Failed to retrieve IP for DNS: %s"):format(srv) end for _, ip in ipairs(res) do - if ( ipops.isPrivate(ip) ) then + if ( ipOps.isPrivate(ip) ) then table.insert(result, ip) end end diff --git a/scripts/ip-forwarding.nse b/scripts/ip-forwarding.nse index a4c8b7502..604491a90 100644 --- a/scripts/ip-forwarding.nse +++ b/scripts/ip-forwarding.nse @@ -3,6 +3,7 @@ local nmap = require "nmap" local packet = require "packet" local stdnse = require "stdnse" local string = require "string" +local ipOps = require "ipOps" description = [[ Detects whether the remote device has ip forwarding or "Internet connection @@ -92,7 +93,7 @@ action = function(host) return fail("Failed to determine the network interface name") end - local target = ipops.ip_to_bin(arg_target) + local target = ipOps.ip_to_bin(arg_target) if ( not(target) ) then local status status, target = dns.query(arg_target, { dtype='A' })