--- aliases: - /2008/04/netcat-quickly-send-binaries-through categories: - linux date: 2008-04-29 12:25 layout: post slug: netcat-quickly-send-binaries-through title: netcat, quickly send binaries through network ---

just start nc in server mode on localhost:

[sourcecode language='python'] nc -l -p 3333 [/sourcecode]

send a string to localhost on port 3333:

[sourcecode language='python'] echo "hello world" | nc localhost 3333 [/sourcecode]

you'll see on server side appearing the string you sent.

very useful for sending binaries, see examples .