Nmap Development mailing list archives

Re: NSE Socket Operation on a non-socket


From: jah <jah () zadkiel plus com>
Date: Sun, 19 Jul 2009 12:52:25 +0100

On 19/07/2009 08:13, Joao Correa wrote:
I've tried to reproduce the errors using the commands David mentioned.
I also used the common ips file provided by Patrick. The only error
I've found was:

./nselib/stdnse.lua:61: bad argument #4 to 'format' (string expected, got table)
stack traceback:
      [C]: in function 'format'
      ./nselib/stdnse.lua:61: in function 'print_debug'
      ./scripts\html-title.nse:180: in function 'is_vhost'
      ./scripts\html-title.nse:114: in function 'rule'
      ./scripts\html-title.nse:156: in function 'redirect_ok'
      ./scripts\html-title.nse:55: in function <./scripts\html-title.nse:45>
      (tail call): ?

This error happens due to a return from dns.query(). I'm not very
familiar with dns.lua, so I'm not able to point the 'cause of the
problem. Also, this problem only happens while running on windows XP
SP2, and not on linux. Anyway, both errors does not seem to be
connected...
This error happens because dns.query() isn't consistent about its return
values and instead of returning: false, "err message" under certain
circumstances (as nsedoc suggests), it returns: false, table.
Good find Joao.

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


Current thread: