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