New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not read from STDIN option #142
Comments
For what it's worth, I did get a workaround using
I still think to keep compatibility, |
Does |
Negative, same results. |
Please include the output of Additionally, the output (stderr) from your command with the addition of Finally, can you clarify what you mean by "non-interactively"? Do you have the same problem with |
Receiving side: Reproduced with:
|
This option solves issue nmap#142. It prevents Ncat from putting the connection in half-duplex mode after seeing EOF on stdin. This emulates the behavior of OpenBSD-netcat's `-d` option. The `-d` option itself prevents a bug affecting some versions of that program in which the sender closes the connection prematurely upon receiving a FIN packet from a receiver.
Upgraded from CentOS 6 to 7 and nc was replaced with ncat. nc has an option, -d, which won't try to read from STDIN. -d in ncat, is a delay flag. Changing option flags would be perfectly okay if there was a corresponding option. The main problem is that when I run a bash script non-interactively that has ncat listen, it immediately exits "NCAT DEBUG: EOF on stdin". I've been unsuccessful in a workaround short of building the older nc for CentOS 7.
The text was updated successfully, but these errors were encountered: