Use of Netcat under Kali

Source: Internet
Author: User
Tags mcrypt

1. Using Netcat to transfer text messages

Server side: Nc-l-P 333; listening 333 port

View server-side Ip:ifconfig

Client: Nc-nv 192.168.222.128 333; Connect to server 333 port

This allows the text message to be transferred.

2.ls-l |NC-NV 192.168.222.128 333-q 1; Lists information about the client's current directory and transmits it to the server by netcate

3. Server: Nc-l-P 333 > Ps.txt
Client: PS aux|nc-nv 192.168.222.128 333-q 1

Lists the process list for the machine on which the client is located, transfers to the server side, and stores it in the Ps.txt file

4. Server: Nc-l-P 333 > vmare.pl

Client: Nc-nv 192.168.222.128 333 < vmware-install.real.pl-q 1

Transferring files from the client to the server side

5. Server ready file for download: nc-l-P 333 < Vmare.pl-q 1
Client get file: Nc-nv 192.168.222.128 333 >1.pl
Client obtains files from server side

6. Transfer Directory

Server side: tar-cvf-vmware-tools-distrib/|nc-l-P 333-q 1
Client: NC-NV 192.168.222.128 333 |TAR-XVF-
Use with the tar command
7. Encrypt transfer files

Apt-get Install Mcrpt

Server side: Nc-l-P 333 | MCrypt--flush-fbqd-a rijndael-256-m ECB >test.tar.gz

Client: MCrypt--flush-fbq-a rijndael-256-m ECB < vmwaretools-10.0.6-3595377.tar.gz |nc-nv 192.168.222.128 333-q 1

8. Play Streaming media files

Server side: Cat 1.avi |nc-l-P 333-q 1

Client: Nc-nv 192.168.222.128 333 | MPLAYER-VO X11-cache 3000-

Use of Netcat under Kali

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.