nc linux command of

 

nc example using

    a port scan

nc -v -w 2 192.168.2.34 the -Z 21-24

nc: Connect to Port 21 is 192.168.2.34 (TCP) failed: Connection refused The
Connection Port 22 is to 192.168.2.34 [TCP / SSH] succeeded.!
nc : Connect to Port 23 is 192.168.2.34 (TCP) failed: Connection refused the
NC: Connect to 192.168.2.34 Port 24 (TCP) failed: Connection refused the

    from 192.168.2.33 to 192.168.2.34 copy files
    on 192.168.2.34: nc -l 1234> test.txt
    in 192.168.2.33 on: nc 192.168.2.34 <test.txt

    simple chat tool
    on 192.168.2.34: nc -l 1234
    on 192.168.2.33: nc 192.168.2.34 1234
    so the two sides can communicate with each other a. Use ctrl + C (or D) exit.

    Memcached operation command with nc
    1) for storing data: printf "set key 0 10 6rnresultrn " | nc 192.168.2.34 11211

Reference: https: //blog.csdn.net/wuxintdrh/article/details/81750281

Guess you like

Origin www.cnblogs.com/i-shu/p/11563947.html