I am trying to use netcat to send a simple message over TCP, e.g. I want to send the digit 1.
So I understood that I write the following in the terminal, after installing netcat
netcat [ip-address] [port]
But how do I specify the message to be sent? i.e. where to I write "1" ?
catcommand to redirection toecho. I use this method to send string data to remote machines that are operating as one for greater bash multi-tasking. – Yokai Nov 14 '17 at 08:27
– Do-do-new Jan 11 '23 at 10:31netcat -l [port]