Nmap Development mailing list archives
Re: ncat - UNIX-domain sockets support
From: Tomas Hozza <thozza () redhat com>
Date: Mon, 24 Sep 2012 08:31:15 -0400 (EDT)
Hi, I finished implementing the UNIX-domain socket support for Ncat and Nsock. I'm attaching two patches, one is for Nsock library and the second is for Ncat. The listen functionality is implemented the same way it is now in Ncat, but I have no problem rewrite it after you introduce new functions and support for listening in Nsock library. I would like to ask everybody to have look on my patches and give me some feedback, if it's OK, or what should be changed. Thanks! Regards, Tomas ----- Original Message -----
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).+1Unfortunately 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 FifieldRegards -- Henri
Attachment:
0001-Implementation-of-UNIX-domain-sockets-for-Nsock.patch
Description:
Attachment:
0002-Implementation-of-UNIX-domain-sockets-for-ncat.patch
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:
- ncat - UNIX-domain sockets support Tomas Hozza (Aug 20)
- Re: ncat - UNIX-domain sockets support Tomas Hozza (Sep 10)
- Re: ncat - UNIX-domain sockets support David Fifield (Sep 10)
- Re: ncat - UNIX-domain sockets support Henri Doreau (Sep 10)
- Re: ncat - UNIX-domain sockets support Tomas Hozza (Sep 24)
- Re: ncat - UNIX-domain sockets support David Fifield (Sep 24)
- Re: ncat - UNIX-domain sockets support David Fifield (Sep 10)
- Re: ncat - UNIX-domain sockets support Tomas Hozza (Sep 10)
- Re: ncat - UNIX-domain sockets support Fyodor (Sep 12)
- Re: ncat - UNIX-domain sockets support Tomas Hozza (Sep 18)
- Re: ncat - UNIX-domain sockets support Abuse 007 (Sep 19)
- Re: ncat - UNIX-domain sockets support Tomas Hozza (Sep 24)