Think before you speak, read before you think.

nc netcat使用

by

in

接收方开端口3389,将接收文件保存为jdk-7u40-linux-x64.gz

nc -l  3389 > jdk-7u40-linux-x64.gz

发送方写上接收方的外网ip,端口号与接收方保持一致,最后接要发送的文件

nc 101.6.25.22 3389 < /Volumes/PENDRIVE/jdk-7u40-linux-x64.gz

 

http://blog.csdn.net/michael493439861/article/details/7445454

查看一台机器端口开放情况

nc -z 192.168.1.1 80

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *