Nmap Development mailing list archives

Re: script bug


From: David Fifield <david () bamsoftware com>
Date: Fri, 22 Jan 2010 11:48:15 -0700

On Thu, Jan 21, 2010 at 04:27:29PM -0500, MELDAU, RONALD J wrote:
NSE: Got icon URL ./converter.ico.
NSE: http-favicon against 10.99.24.140:443 threw an error!
C:\Program Files\Nmap\scripts\http-favicon.nse:141: variable 'dirname' is not declared
stack traceback:
        [C]: in function 'error'
        C:\Program Files\Nmap\nselib/strict.lua:68: in function <C:\Program Files\Nmap\nse
lib/strict.lua:59>
        C:\Program Files\Nmap\scripts\http-favicon.nse:141: in function 'parse_url_relativ
e'
        C:\Program Files\Nmap\scripts\http-favicon.nse:85: in function <C:\Program Files\N
map\scripts\http-favicon.nse:48>
        (tail call): ?

Thank you for the report. This bug is fixed in r16542. The dirname
function mentioned by the error wasn't copied into the script when some
other code was moved there.

This error would happen when a web page used a link element to locate a
favicon with a relative URL. The dirname function is used to absolutize
the URL.

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: