nc server / nc proxy

Retour

http server nc

while true ; do  echo -e "HTTP/1.1 200 OK\n\n $(date)" | nc -l -p 1500  ; done

Server (autorelisten)

nc -lkv 1500

Connect

nc localhost 1500

proxy

mknod backpipe p
nc -l -p 80 < backpipe | tee -a in | nc localhost 8080 | tee -a out > backpipe