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"

Was it helpful?

Solution

Just change to:

echo "info" | nc - w 30 IP 3031 
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top