Nmap Development mailing list archives

Re: [NSE] DNS update support


From: David Fifield <david () bamsoftware com>
Date: Sun, 9 Jan 2011 17:58:09 -0800

On Mon, Jan 10, 2011 at 02:15:45AM +0100, Patrik Karlsson wrote:
Hi all,

I just finished some work on the DNS library adding support for unauthenticated dynamic updates.
I'm including a patch that adds the support and a script dns-update that makes us of it.

The script attempt to add a record specified as an argument and returns a message if it was successful.
Any comments or feedback are always appreciated.

I get this error:

./nmap --datadir . --script=dns-update -d 192.168.0.1 -sU -p53 --script-args 
dns-update.hostname=foo,dns-update.ip=3.3.3.3

./nselib/dns.lua:708: attempt to concatenate a nil value
stack traceback:
        ./nselib/dns.lua:708: in function <./nselib/dns.lua:704>
        (tail call): ?
        ./nselib/dns.lua:775: in function 'encode'
        ./nselib/dns.lua:1254: in function 'update'
        ./scripts/dns-update.nse:53: in function <./scripts/dns-update.nse:46>
        (tail call): ?

With "foo.bar.com" instead of "foo", the script finishes but doesn't
make any output.

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


Current thread: