Table of Contents

Servidor de teste

root@localhost:~# var=1 ; while [ 1 = ${var} ] ; do echo -n -e '\x2\xf\xa\xc\xe'; var=2; done  | nc -l -C -p 1234

Cliente enviando caracter hexadecimal e recebendo resposta hexadecimal

root@localhost:~# echo -n -e '\x9' | nc -w2 127.0.0.1 1234 | hexdump
0000000 0f02 0a0d 0e0c                         
0000006
root@notNOC01:~#

Mais exemplos

while true ; do printf 'HTTP/1.1 200 OK\r\n\r\ncool, thanks' | netcat -l -c -p 8888 ; done