Nmap Development mailing list archives
Re: [PATCH] "ncat -l --send-only" not sending only
From: Kris Katterjohn <katterjohn () gmail com>
Date: Fri, 24 Jul 2009 14:23:45 -0500
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 07/24/2009 01:53 PM, David Fifield wrote:
I've found a bug with this. Try running ncat -l --send-only -vvv ncat localhost Then send something on the client. The server will start using 100% CPU as it repeatedly selects on the socket: Connection from 127.0.0.1. DEBUG: Added fd 4 to list, nfds 3, maxfd 4 DEBUG: selecting, fdmax 4 DEBUG: select returned 1 fds ready DEBUG: fd 4 is ready DEBUG: selecting, fdmax 4 DEBUG: select returned 1 fds ready DEBUG: fd 4 is ready DEBUG: selecting, fdmax 4 DEBUG: select returned 1 fds ready DEBUG: fd 4 is ready ...
Well that sucks!
This would not be hard to fix. It would just take having two lists of socket descriptors, one to listen to read events and one to keep a list of clients to broadcast to. They would be the same except in the --send-only case. Do you want to write patch, Kris? Otherwise this would be a job for a feature creeper or someone like Etienne Maynier who has volunteered to help.
I will (or would) do it, but I honestly don't know how soon I'll get to it. I appreciate the offer (rather than just assigning it to whoever), but somebody else can take care of it simply to get it done faster.
David Fifield
Thanks, Kris Katterjohn -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQIcBAEBAgAGBQJKagpAAAoJEEQxgFs5kUfuv48P/28y3eca3jWjRVYlvkGNYCwD 4lm//tB8KeXJd5CkfCywVP+tEdsmAbOJeNdxns4MmfA78Z/EDk+CohbwO+HzmHdP GWGXFFebEftenJ5PgPB3DQNxuZsZk6VGosmpOEKHD8HsrWiYqqQD7bK3Zv0V62wF PifOY29vKdPgZ70FjBjfcmR571h0h26bXDy2J/Nzv6ngtbMynHo05KFA8BgEXccy D5juNdUsTfTk8lCq6koT1nvlakXnEacjco1AzQI0BLqQwY8lo1W5FBr9BEBWwRdh qZV8nYoum5pbDr6yTgUyKRUOFEd9H+tlo8XioY+DEfEpXyQEH+aWCtRCI+Felw6b iuE35shll/pCdKh4CP/WlUmW8Fyc3V3prmZ416TkUm1sC/hrykbxhxOrz3PQaVQ3 9QGKei1HcsCTkRhVokQy4zzRG7GJ4cww5Ktrw9AKj1emVehye27+qud/10lYIam4 SokwLDJWrV9HpV66EPVDIUQaG2gd2qlqFtcI383ZTCZQGzco0aoif4kzm/xTDbWO DiTR3RSJZJ5bgu1ylwOV/mMugNSAKEI++3giBdFJb58GKSjUzeyAgDZuDs30HZhF l5hNwPndj3fYIX6V6zzvOBDPgDj1TKYoOgbLDpBn8soxSm7VHLEphWIFBKwso0Xs 1PCsBf3AN2Nwpt6wRh88 =jn2q -----END PGP SIGNATURE----- _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- Re: [PATCH] "ncat -l --send-only" not sending only David Fifield (Jul 10)
- Re: [PATCH] "ncat -l --send-only" not sending only Kris Katterjohn (Jul 10)
- Re: [PATCH] "ncat -l --send-only" not sending only David Fifield (Jul 24)
- Re: [PATCH] "ncat -l --send-only" not sending only Kris Katterjohn (Jul 24)