Nmap Development mailing list archives
Re: [nmap-svn] r34001 - nmap/scripts
From: Daniel Miller <bonsaiviking () gmail com>
Date: Tue, 10 Feb 2015 23:05:25 -0600
On Tue, Feb 10, 2015 at 11:30 AM, <commit-mailer () nmap org> wrote:
Author: jah Date: Tue Feb 10 17:30:22 2015 New Revision: 34001 Log: Obtain whois remote assignments files over https. Modified: nmap/scripts/whois-ip.nse Modified: nmap/scripts/whois-ip.nse ============================================================================== --- nmap/scripts/whois-ip.nse (original) +++ nmap/scripts/whois-ip.nse Tue Feb 10 17:30:22 2015 @@ -1640,7 +1640,7 @@ 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 @@ 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"
This makes this portion of the script fail if Nmap is built without SSL support. I'm not sure the best way ahead: I would like to use HTTPS if possible, of course. Example: NSE: Starting whois-ip against scanme.nmap.org (74.207.244.221). NSE: [whois-ip 74.207.244.221] Failed whilst requesting https://www.iana.org/assignments/ipv4-address-space/ipv4-address-space.txt. NSE: [whois-ip 74.207.244.221] Failed whilst requesting https://www.iana.org/assignments/ipv6-unicast-address-assignments/ipv6-unicast-address-assignments.txt . NSE: [whois-ip 74.207.244.221] Error in get_db_from_assignments: Missing assignments data in registry. NSE: Finished whois-ip against scanme.nmap.org (74.207.244.221). Completed NSE at 05:01, 0.43s elapsed Nmap scan report for scanme.nmap.org (74.207.244.221) Host is up, received conn-refused (0.039s latency). Host script results: | whois-ip: Record found at whois.arin.net | netrange: 74.207.224.0 - 74.207.255.255 | netname: LINODE-US | orgname: Linode | orgid: LINOD | country: US stateprov: NJ | orgtechname: Linode Network Operations |_orgtechemail: support () linode com Dan
_______________________________________________ Sent through the dev mailing list https://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Re: [nmap-svn] r34001 - nmap/scripts Daniel Miller (Feb 10)