Nmap Development mailing list archives
Re: hddtemp-info.nse
From: David Fifield <david () bamsoftware com>
Date: Sun, 12 Dec 2010 13:33:22 -0800
On Sun, Dec 12, 2010 at 11:09:10PM +0200, Toni Ruottu wrote:
On Sat, Dec 11, 2010 at 9:18 PM, David Fifield <david () bamsoftware com> wrote:On Thu, Dec 09, 2010 at 11:20:24AM +0200, Toni Ruottu wrote:On Thu, Dec 9, 2010 at 2:07 AM, David Fifield <david () bamsoftware com> wrote:On Tue, Nov 30, 2010 at 07:03:35PM +0200, Toni Ruottu wrote:The problem seems to be that comm always does a single receive. If the network conditions are good this does not matter, but over the Internet the first receive is not likely to contain the full banner. I think the comm library needs to be changed to do as many receives as it is able to do before a time out.Does this patch make a difference?No. Still broken, after applying the patch.Try increasing the timeout (shouldn't require the patch I gave you). If you find a reasonable timeout value I'll commit it. http://nmap.org/nsedoc/lib/comm.htmlI doubt that increasing the timeout will help. As far as I can tell the problem is not about the timeout being too short. The problem is that comm library does only one recv. My impression is that the response arrives very quickly, but in multiple parts. So reading it is really fast, as long as you do multiple recv.
Nsock (used by NSE) internally does multiple recvs by default. It keeps reading until the given byte limit is reached, EOF, or timeout. You might have to increase the byte limit from its default of 1 too. (That's what my earlier patch effectively did). 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:
- hddtemp-info.nse Toni Ruottu (Nov 29)
- Re: hddtemp-info.nse David Fifield (Nov 29)
- Re: hddtemp-info.nse Toni Ruottu (Nov 30)
- Re: hddtemp-info.nse David Fifield (Dec 08)
- Re: hddtemp-info.nse Toni Ruottu (Dec 09)
- Re: hddtemp-info.nse David Fifield (Dec 11)
- Re: hddtemp-info.nse Toni Ruottu (Dec 12)
- Re: hddtemp-info.nse David Fifield (Dec 12)
- Re: hddtemp-info.nse Toni Ruottu (Dec 13)
- Re: hddtemp-info.nse Toni Ruottu (Dec 30)
- Re: hddtemp-info.nse Toni Ruottu (Nov 30)
- Re: hddtemp-info.nse David Fifield (Nov 29)