1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-31 11:59:03 +00:00

ipOps capitalization.

http://seclists.org/nmap-dev/2012/q2/602
This commit is contained in:
david
2012-06-05 21:16:23 +00:00
parent 86077ed05f
commit 31b628f994
2 changed files with 4 additions and 2 deletions

View File

@@ -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

View File

@@ -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' })