Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Do not read from STDIN option #142
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.
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
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.