Nmap Development mailing list archives

Re: ncat - UNIX-domain sockets support


From: Henri Doreau <henri.doreau () gmail com>
Date: Mon, 10 Sep 2012 23:38:54 +0200

2012/9/10 David Fifield <david () bamsoftware com>:
I don't think we want to have a select loop separate from Nsock. It is
better to add domain socket support to Nsock for connect mode, and not
reimplement connect mode (along with everything else like delays and
telnet negotiation).

+1

Unfortunately Nsock doesn't have listening support, or we would use it
for Ncat listen mode as well.

I'm on it. I plan to introduce a new NSE_TYPE_LISTEN constant and two functions:
"""
nsock_event_id nsock_listen(nsock_pool nsp, nsock_iod nsiod,
nsock_ev_handler handler, int timeout_msecs, void *udata, const struct
sockaddr *saddr, size_t sslen);

/* to get client fd and addr from within the event handler */
int nsock_accept(nsock_event nse, struct sockaddr *saddr, size_t *sslen);
"""

Could be very helpful for ncat, but also NSE and a maybe future nsock
regression test suite.

David Fifield

Regards

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


Current thread: