Nmap Development mailing list archives

[NSE] http.request() ignores port.protocol and assumes "tcp" even when it's really "udp"


From: jah <jah () zadkiel plus com>
Date: Mon, 10 Nov 2008 15:07:34 +0000

Hi all,

I got a result where html-title ran against UDP port 80 and returned
with an html title which it obtained by talking TCP.  This occurs
because http.request() defines protocol = "tcp" but doesn't check that
port.protocol is actually tcp.

Easily fixed by returning nil from http.request() if port.protocol ==
"udp" and perhaps printing a debug info.
html-title might also be modified to avoid running for udp ports.

Do you think this is sufficient?

Regards,

jah

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


Current thread: