netcat


Author: yifei / Created: July 28, 2017, 7:57 a.m. / Modified: July 28, 2017, 3:59 p.m. / Edit

replacement for telnet

nc www.google.com 80

chat with each other

nc -l -p 10086 nc localhost 10086

send files over network

directory

tar -cf - /data | nc -l -p 666 nc 192.168.1.10 6666 | tar -xf -

file

cat file | nc -l -p 6666

make any process a server

nc -l -p 12345 -e /bin/bash


评论区