Question

I'm new to netcat and trying to use the same line in the busybox as i do in my pc.

I want to know how I can change the redirection operator.

nc -w 30 IP 3031 -e <<<"info"

this is the error

-sh: syntax error: redirection unexpected

I think it doesn't like <<<, but what should I change it to?

btw this script throws the information it gets to the screen, by sending "info"

Était-ce utile?

La solution

Just change to:

echo "info" | nc - w 30 IP 3031 
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top