Nmap Development mailing list archives

Re: Feature request: scanning an AS


From: John Bond <john.r.bond () gmail com>
Date: Wed, 7 Sep 2011 19:48:58 +0200


Okay, I think this is a nice script. Here are a few things I'd like to
see:

We should get permission from the operators of the whois server, like we
did for the asn-query script. We just don't want them to be mad if the
script being distributed with Nmap causes them a lot of extra load.
Would you email them and ask if they object to the script.
I have already emailed them and they are happy for us to use the
service, i can forward you the thread if needed.

The script needs to go into the "external" category.

I think this is unnecessary:
       newtargets = stdnse.get_script_args('asn-to-prefix.newtargets')
Just plain "newtarget" already sets target.ALLOW_NEW_TARGETS.
no problem

Instead of doing socket:receive_lines(1000000), do
socket:receive_lines(1) in a loop. That way you can limit how much you
will read and not stall forever if the server gives you a lot of data.
You still need to split on newlines because receive_lines(1) may return
more than one line.
Ok ill take a look at this in a bit

Sorry i just checked and think i updated this all ages ago but forgot
to send it in.  let me know if there is anything else that needs doing
and ill try to respond in less then 5 months

Attachment: asn-to-prefix.nse
Description:

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

Current thread: