mirror of
https://github.com/nmap/nmap.git
synced 2025-12-31 11:59:03 +00:00
@@ -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
|
||||
|
||||
@@ -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' })
|
||||
|
||||
Reference in New Issue
Block a user