From 859ae15b9f4ddf87ed7c16f8e13ff0639b5ae1d7 Mon Sep 17 00:00:00 2001 From: jah Date: Tue, 10 Feb 2015 17:30:22 +0000 Subject: [PATCH] Obtain whois remote assignments files over https. --- scripts/whois-ip.nse | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/whois-ip.nse b/scripts/whois-ip.nse index 76629c196..bee4dbf1b 100644 --- a/scripts/whois-ip.nse +++ b/scripts/whois-ip.nse @@ -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"