1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Obtain whois remote assignments files over https.

This commit is contained in:
jah
2015-02-10 17:30:22 +00:00
parent a26b28b635
commit 859ae15b9f

View File

@@ -1640,7 +1640,7 @@ function script_init( )
nmap.registry.whois.remote_assignments_files = {}
nmap.registry.whois.remote_assignments_files.ipv4 = {
{
remote_resource = "http://www.iana.org/assignments/ipv4-address-space/ipv4-address-space.txt",
remote_resource = "https://www.iana.org/assignments/ipv4-address-space/ipv4-address-space.txt",
local_resource = "ipv4-address-space",
match_assignment = "^%s*([%.%d]+/%d+)",
match_service = "whois%.(%w+)%.net"
@@ -1654,7 +1654,7 @@ function script_init( )
match_service = "^[:%x]+/%d+%s*(%w+)"
},--]]
{
remote_resource = "http://www.iana.org/assignments/ipv6-unicast-address-assignments/ipv6-unicast-address-assignments.txt",
remote_resource = "https://www.iana.org/assignments/ipv6-unicast-address-assignments/ipv6-unicast-address-assignments.txt",
local_resource = "ipv6-unicast-address-assignments",
match_assignment = "^%s*([:%x]+/%d+)",
match_service = "whois%.(%w+)%.net"