Home page logo
/

nmap-dev logo Nmap Development mailing list archives

Re: Expansion on whois.nse
From: George Chatzisofroniou <sophron () latthi com>
Date: Mon, 15 Jul 2013 23:26:01 +0300

On Mon, Jul 08, 2013 at 11:37:37PM +0300, George Chatzisofroniou wrote: 
My primary concern is why this feature wasn't existing before? I checked the
nmap-dev's archives to see if there is a discussion on why this wasn't done, but
couldn't find anything. Am i missing something?

I guess there wasn't an actual reason.

I've done some more improvements. I used mutexes, handled domain names with www 
prefix, fixed the output a bit, disabled caching (i don't think there is a
reason to cache these results), returned error message when input is an IP
address etc.

I also compared my implementation with that of Linux. It looks like the Linux
ultity works the same way except that it holds an internal database to save one 
query.

Notice that the logic for domain name queries is different compared to the rest
of the script. For example, the ip output doesn't contain any legal notes, while
the domain name output does (i couldn't filter all the domain name whois servers
because there are too many). That's why i've made the domain name query to work
with an argument. I think the best idea is to split the two scripts to whois-ip
and whois-domain (whois.nse has grown very large holding more than 2k SLOCs).

You will find the upgraded script attached.

-- 
George Chatzisofroniou

Attachment: whois.nse
Description:

_______________________________________________
Sent through the dev mailing list
http://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]
AlienVault