You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Please include the output of nc --version so we can determine if this is an already-solved issue.
Additionally, the output (stderr) from your command with the addition of -vvv will provide useful debugging information.
Finally, can you clarify what you mean by "non-interactively"? Do you have the same problem with nc -l $port </dev/null | tar xvf - ? Or do you mean closing stdin with <&-? I just filed a bug for a separate issue in that case: #143.
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.