Pregunta

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"

¿Fue útil?

Solución

Just change to:

echo "info" | nc - w 30 IP 3031 
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top