Nmap Development mailing list archives

Re: Socket troubles: Too many open files


From: David Fifield <david () bamsoftware com>
Date: Thu, 20 Sep 2012 13:37:08 -0700

On Fri, Sep 14, 2012 at 08:36:16AM -0700, David Fifield wrote:
On Thu, Sep 13, 2012 at 04:43:28PM -0500, Christopher Clements wrote:
nmap -A -sSUCV --script '(discovery or default or safe)' T:1-65535,U:(top
75 UDP ports)  --reason --open -oA nmap-output <targets>

I'm afraid I didn't look at the scan phase it was on (had kicked off the
scan and went home for the night).

I'm guessing this has the same cause as the error messages reported by
starlight,

http://seclists.org/nmap-dev/2012/q3/889
http://seclists.org/nmap-dev/2012/q3/att-889/nmap_crash4.txt

The log has the same "Too many open files" message appear during the
script scanning phase.

FYI, I'm now able to reproduce this against localhost using the attached
scapy script and a firewall rule to block the OS from sending RSTs. The
scapy script just replies to a SYN on any port with a SYN/ACK.

./nmap -Pn localhost -d -sV -sC
Socket troubles: Too many open files
Socket troubles: Too many open files
nmap: nsock_core.c:1187: nsp_add_event: Assertion `nse->iod->sd >= 0' failed.
Aborted

David Fifield

Attachment: syn.py
Description:

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

Current thread: